Skip to content

Commit

Permalink
[connector:abstract]removes target dir on fromCopy(dir) failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 19, 2015
1 parent 4e3a8fd commit 246ceec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,8 @@ protected function copyFrom($volume, $src, $destination, $name) {

foreach ($volume->scandir($src) as $entr) {
if (!$this->copyFrom($volume, $entr['hash'], $path, $entr['name'])) {
return false;
$this->remove($path, true); // fall back
return $this->setError($this->error, elFinder::ERROR_COPY, $errpath);
}
}

Expand Down

0 comments on commit 246ceec

Please sign in to comment.