[xwiki-devs] [Proposal] Virtual file system
Hi, I'd like to propose that in the future we implement a xwiki-filesystem module that has a virtual filesystem API. The idea is that all modules who need access to the file system go through this xwiki-filesystem module. We would implement it using Commons VFS (http://commons.apache.org/vfs/). This allows to use different filesystems: * For example in unit tests we would use a RAM filesystem. This allows not leaving files around during tests. * Users could configure XWiki to use a different filesystem (see http://commons.apache.org/vfs/filesystems.html) I have used commons vfs in the past on Cargo and it has worked great. I've just had a look at its releases and it's been a while since the last one. However activity seems to be picking up and provided we have our own interface I don't see a major issue. At worse we would only use RAM and file implementations. Disclaimer: I'm not planning to work on this anytime soon. Just wanted to share the idea with you so that we can decide if that's something we want or not. Thanks -Vincent
+1 soounds really great :) On Fri, Sep 12, 2008 at 8:22 PM, Vincent Massol <[email protected]> wrote:
Hi,
I'd like to propose that in the future we implement a xwiki-filesystem module that has a virtual filesystem API.
The idea is that all modules who need access to the file system go through this xwiki-filesystem module. We would implement it using Commons VFS (http://commons.apache.org/vfs/).
This allows to use different filesystems: * For example in unit tests we would use a RAM filesystem. This allows not leaving files around during tests. * Users could configure XWiki to use a different filesystem (see http://commons.apache.org/vfs/filesystems.html)
I have used commons vfs in the past on Cargo and it has worked great. I've just had a look at its releases and it's been a while since the last one. However activity seems to be picking up and provided we have our own interface I don't see a major issue. At worse we would only use RAM and file implementations.
Disclaimer: I'm not planning to work on this anytime soon. Just wanted to share the idea with you so that we can decide if that's something we want or not.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (2)
-
Thomas Mortagne -
Vincent Massol