mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
fixes #103
This commit is contained in:
@@ -529,6 +529,18 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
return copy($source, $target);
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace one file with another.
|
||||
*
|
||||
* @param string $target target file path
|
||||
* @param string $source replacement file path
|
||||
* @return bool
|
||||
* @author Dmitry (dio) Levashov
|
||||
**/
|
||||
protected function _replace($target, $src) {
|
||||
return @unlink($target) && copy($src, $target);
|
||||
}
|
||||
|
||||
/**
|
||||
* Move file into another parent dir
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user