mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[php:core,VD:LocalFileSystem] perfomance tune of uniqueName()
This commit is contained in:
@@ -1122,6 +1122,21 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
return $this->rmdirRecursive($localpath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return fileinfo based on filename
|
||||
* For item ID based path file system
|
||||
* Please override if needed on each drivers
|
||||
*
|
||||
* @param string $path file cache
|
||||
* @return array
|
||||
*/
|
||||
protected function isNameExists($path) {
|
||||
$res = file_exists($this->convEncIn($path));
|
||||
// restore locale
|
||||
$this->convEncOut();
|
||||
return $res;
|
||||
}
|
||||
|
||||
/******************** Over write (Optimized) functions *************************/
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user