diff options
-rw-r--r-- | mod/cloud.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/cloud.php b/mod/cloud.php index 7413e1824..3332cf18c 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -32,6 +32,9 @@ function cloud_init(&$a) { require_once('include/reddav.php'); + if(! is_dir('store')) + mkdir('store',STORAGE_DEFAULT_PERMISSIONS,false); + $which = null; if(argc() > 1) $which = argv(1); @@ -74,7 +77,7 @@ function cloud_init(&$a) { $rootDirectory = new RedDirectory('/',$auth); $server = new DAV\Server($rootDirectory); - $lockBackend = new DAV\Locks\Backend\File('store/data/locks'); + $lockBackend = new DAV\Locks\Backend\File('store/[data]/locks'); $lockPlugin = new DAV\Locks\Plugin($lockBackend); $server->addPlugin($lockPlugin); |