]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow Storages to join MountPoint initialization
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 12 Apr 2013 22:33:21 +0000 (00:33 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 15 Apr 2013 08:28:14 +0000 (10:28 +0200)
lib/files/filesystem.php

index ac1cefafac64a1988abcde3327c85209aac83f9f..83b5e0c0cc61531fa325fc224cd9f127c2e41a31 100644 (file)
@@ -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
  */
@@ -279,6 +280,9 @@ class Filesystem {
                                }
                        }
                }
+
+               // Chance to mount for other storages
+               \OC_Hook::emit('OC_Filesystem', 'post_initMountPoints', array('user' => $user, 'user_dir' => $root));
        }
 
        /**