diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/filesystem.php | 12 |
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 |