"file_exists for vfs"

This commit is contained in:
Ralf Becker 2009-04-18 09:51:51 +00:00
parent f0896ccd09
commit a694662838

View File

@ -227,6 +227,17 @@ class egw_vfs extends vfs_stream_wrapper
return $path[0] == '/' && is_link(self::PREFIX.$path);
}
/**
* file_exists() version working only inside the vfs
*
* @param string $path
* @return boolean
*/
static function file_exists($path)
{
return $path[0] == '/' && file_exists(self::PREFIX.$path);
}
/**
* Mounts $url under $path in the vfs, called without parameter it returns the fstab
*