FileSystemMirror
================

A very simple demo app that will mirror all or parts of your 4Suite
repository to the file system and vice-versa.

It has a very limited feature set, currently.


Usage
-----

Just run the script with the following command line parameters:

python FileSystemMirror.py <localpath> <ftsspath> --read=<readAcl> --write=<writeAcl>

localPath is a path to a directory on the local file system.
This directory and its contents will be mirrored in the repository.

ftsspath is a path to a container in the repository.
This container and its contents will be mirrored in the filesystem.

readAcl is the read ACL ident for any new resources created in the
system. If not supplied, WORLD access is used.

writeAcl is the write ACL ident for any new resource created in the
system. If not supplied, WORLD access is used.

Example:

  python FileSystemMirror.py /tmp/data /localhost/data

  Every time the script is run, /tmp/data on the local filesystem
  will be mirrored to the repository.


TODO
----

* Make it a server once 4SS server extensions are cleaner
* Add mapping of 4SS users to file system users
* Add mapping of permissions
* Add mapping of file types to MIME types
* Improve discrepancy resolution (e.g., delete files)
* Add support for aliases
