[Yanel-dev] yarep patch to support splitting of paths

Claudio Corrodi claudio.corrodi at wyona.com
Fri Jul 16 10:58:45 CEST 2010


Hi

Attached is a patch which allows to configure a
VirtualFileSystemRepository to split paths automatically according to
various parameters. A use case would be for example if you need to store
a lot of files under a certain path, e.g. /data/ and want them in
multiple subdirectories. Then this patch allows you to define rules such
that paths like /data/76f76641-c80d-4cd7-9470-c47eeae48bbc are actually
stored at /data/76f7/7664/-c80d-4cd7-9470-c47eeae48bbc.

Please take a look at src/test/repository/new-vfs-example/repository.xml
for a description and example configuration. I also updated the
VirtualFilesystemRevisionTest which can be run using "./build.sh test
-Dtest.class.name=3Dorg.wyona.yarep.tests.VirtualFilesystemRevisionsTest".

Regards,
Claudio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: splitpath.patch
Type: text/x-patch
Size: 11037 bytes
Desc: not available
Url : http://lists.wyona.org/pipermail/yanel-development/attachments/201007=
16/c51758ec/splitpath.bin


More information about the Yanel-development mailing list