This commit is contained in:
Dmitry (dio) Levashov
2011-09-05 20:46:02 +04:00
parent 814b614adf
commit 8ec45595b2
7 changed files with 381 additions and 261 deletions
@@ -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
*