aboutsummaryrefslogtreecommitdiffstats
path: root/mod/cloud.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-21 00:02:25 -0800
committerfriendica <info@friendica.com>2014-01-21 00:02:25 -0800
commit35733ca013e8a113bfd546d5d47f64a83946bc51 (patch)
tree0031fbb6549c6538f6fd75a50e82584f03159c77 /mod/cloud.php
parent13c226bdbe7457c946db24e66739d0973a63f40f (diff)
downloadvolse-hubzilla-35733ca013e8a113bfd546d5d47f64a83946bc51.tar.gz
volse-hubzilla-35733ca013e8a113bfd546d5d47f64a83946bc51.tar.bz2
volse-hubzilla-35733ca013e8a113bfd546d5d47f64a83946bc51.zip
create store directory if it's missing before initialising DAV
Diffstat (limited to 'mod/cloud.php')
-rw-r--r--mod/cloud.php5
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);