diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-10 17:46:29 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-10 17:46:29 +0200 |
commit | 5c6e9518edde10e0c23d0d734d2cc6d161fc15c0 (patch) | |
tree | ac40020d415b2eaeeac88d09053f4d21a3fe876d /lib/files/filesystem.php | |
parent | a2785f57d2335d06f3fa9900298343c1d7f9253a (diff) | |
download | nextcloud-server-5c6e9518edde10e0c23d0d734d2cc6d161fc15c0.tar.gz nextcloud-server-5c6e9518edde10e0c23d0d734d2cc6d161fc15c0.zip |
drop Filesystem::getInternalPath and Filesystem::getStorage in favor of Filesystem::resolvePath
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r-- | lib/files/filesystem.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index f23f3a79e98..841f30c7679 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -165,37 +165,6 @@ class Filesystem { } /** - * get the part of the path relative to the mountpoint of the storage it's stored in - * - * @param string $path - * @return bool - */ - static public function getInternalPath($path) { - $mountPoint = self::getMountPoint($path); - $internalPath = substr($path, strlen($mountPoint)); - return $internalPath; - } - - /** - * get the storage object for a path - * - * @param string $path - * @return \OC\Files\Storage\Storage - */ - static public function getStorage($path) { - $mountpoint = self::getMountPoint($path); - if ($mountpoint) { - if (!isset(self::$storages[$mountpoint])) { - $mount = self::$mounts[$mountpoint]; - self::$storages[$mountpoint] = self::createStorage($mount['class'], $mount['arguments']); - } - return self::$storages[$mountpoint]; - }else{ - return null; - } - } - - /** * resolve a path to a storage and internal path * * @param string $path |