summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-27 00:18:15 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-27 00:18:15 +0100
commit4cae1416733019fe4c7465f3e167a456fb790502 (patch)
tree4e00789795c5399b479e661daabab59211320220
parent17bcea15855784f00791ab19984d520a773aa0ca (diff)
downloadnextcloud-server-4cae1416733019fe4c7465f3e167a456fb790502.tar.gz
nextcloud-server-4cae1416733019fe4c7465f3e167a456fb790502.zip
Filesystem: also add getPath to \OC\Filesystem
-rw-r--r--lib/files/filesystem.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 048116a44bb..262fde320a1 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -599,6 +599,18 @@ class Filesystem {
}
/**
+ * Get the path of a file by id
+ *
+ * Note that the resulting path is not guarantied to be unique for the id, multiple paths can point to the same file
+ *
+ * @param int $id
+ * @return string
+ */
+ public static function getPath($id) {
+ return self::$defaultInstance->getPath($id);
+ }
+
+ /**
* get the ETag for a file or folder
*
* @param string $path