Skip to content

Commit

Permalink
[VD:core] Check if copying was successful when moving files in copy +…
Browse files Browse the repository at this point in the history
… delete mode

ref.
071b5ab#commitcomment-149967981
  • Loading branch information
nao-pon committed Dec 5, 2024
1 parent 7084b55 commit 7544918
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5332,9 +5332,8 @@ protected function move($src, $dst, $name)
$res = $this->convEncOut($this->_move($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name)));
// if moving it didn't work try to copy / delete
if (!$res) {
$res = $this->copy($src, $dst, $name);
if (!$this->remove($src)) {
$res = false;
if ($this->copy($src, $dst, $name)) {
$res = $this->remove($src);
}
}

Expand Down

0 comments on commit 7544918

Please sign in to comment.