[php:core,VD:LocalFileSystem] perfomance tune of uniqueName()

This commit is contained in:
nao-pon
2017-11-09 13:19:19 +09:00
parent b9e74b46fb
commit 4ecbf70969
2 changed files with 27 additions and 1 deletions
@@ -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 *************************/
/**