mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
"file_exists for vfs"
This commit is contained in:
parent
f0896ccd09
commit
a694662838
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user