summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-04-13 05:19:27 -0700
committerFrank Karlitschek <frank@owncloud.org>2013-04-13 05:19:27 -0700
commit8efd71099fb9b824a24fe7f061a7d286733d817a (patch)
tree0b5e3af64463fd3332421ebbb8e7d1a00c08487e
parent618c9152e8e138672f244528897b3f4489e9306a (diff)
parente3b733f23d2f4f73f4331d74b8e3f2fca8b5f673 (diff)
downloadnextcloud-server-8efd71099fb9b824a24fe7f061a7d286733d817a.tar.gz
nextcloud-server-8efd71099fb9b824a24fe7f061a7d286733d817a.zip
Merge pull request #2909 from owncloud/addHook
allow Storages to join MountPoint initialization
-rw-r--r--lib/files/filesystem.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 6f56de9f265..c8e62956f19 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -23,6 +23,7 @@
* post_rename(oldpath,newpath)
* copy(oldpath,newpath, &run) (if the newpath doesn't exists yes, copy, create and write will be emitted in that order)
* post_rename(oldpath,newpath)
+ * post_initMountPoints(user, user_dir)
*
* the &run parameter can be set to false to prevent the operation from occurring
*/
@@ -280,6 +281,9 @@ class Filesystem {
}
}
}
+
+ // Chance to mount for other storages
+ \OC_Hook::emit('OC_Filesystem', 'post_initMountPoints', array('user' => $user, 'user_dir' => $root));
}
/**