add resolvePath to filesystem view api

This commit is contained in:
Robin Appelman 2012-11-08 17:42:26 +01:00
parent 091ff02362
commit 72c3868644
1 changed files with 10 additions and 0 deletions

View File

@ -101,6 +101,16 @@ class View {
return Filesystem::getMountPoint($this->getAbsolutePath($path));
}
/**
* resolve a path to a storage and internal path
*
* @param string $path
* @return array consisting of the storage and the internal path
*/
public function resolvePath($path) {
return Filesystem::resolvePath($this->getAbsolutePath($path));
}
/**
* return the path to a local version of the file
* we need this because we can't know if a file is stored local or not from outside the filestorage and for some purposes a local file is needed