[VD:LocalFileSystem,OneDrive] fix wrong result of isNameExists()

This commit is contained in:
nao-pon
2018-03-21 21:29:45 +09:00
parent a7ce03cf9e
commit eafa99fb57
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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 *************************/