mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LocalFileSystem,OneDrive] fix wrong result of isNameExists()
This commit is contained in:
@@ -1146,10 +1146,10 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
* @return array
|
||||
*/
|
||||
protected function isNameExists($path) {
|
||||
$res = file_exists($this->convEncIn($path));
|
||||
$exists = file_exists($this->convEncIn($path));
|
||||
// restore locale
|
||||
$this->convEncOut();
|
||||
return $res;
|
||||
return $exists? $this->stat($path) : false;
|
||||
}
|
||||
|
||||
/******************** Over write (Optimized) functions *************************/
|
||||
|
||||
Reference in New Issue
Block a user