mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
add option to get the mountmanager from the filesystem
This commit is contained in:
parent
02cdd52fb0
commit
b397df2022
1 changed files with 8 additions and 1 deletions
|
|
@ -148,13 +148,20 @@ class Filesystem {
|
|||
*/
|
||||
private static $loader;
|
||||
|
||||
public static function getLoader(){
|
||||
public static function getLoader() {
|
||||
if (!self::$loader) {
|
||||
self::$loader = new Loader();
|
||||
}
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
public static function getMountManager() {
|
||||
if (!self::$mounts) {
|
||||
\OC_Util::setupFS();
|
||||
}
|
||||
return self::$mounts;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the mountpoint of the storage object for a path
|
||||
* ( note: because a storage is not always mounted inside the fakeroot, the
|
||||
|
|
|
|||
Loading…
Reference in a new issue