* @return Mount
*/
public static function find($path) {
+ \OC_Util::setupFS();
$path = self::formatPath($path);
if (isset(self::$mounts[$path])) {
return self::$mounts[$path];
* @return Mount[]
*/
public static function findIn($path) {
+ \OC_Util::setupFS();
$path = self::formatPath($path);
$result = array();
$pathLength = strlen($path);
* @return Mount[]
*/
public static function findByStorageId($id) {
+ \OC_Util::setupFS();
if (strlen($id) > 64) {
$id = md5($id);
}