Replace deleteAll call with unlink call
The method deleteAll() doesn't officially exist on the Storage class as it's not defined on the interface, which means it fails on the Quota storage wrapper and might fail on some external storage classes. Also, this here is the only use case for that one method.
This commit is contained in:
parent
11ca014034
commit
c465835e85
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ class View {
|
|||
$result = $this->copy($path1, $path2);
|
||||
if ($result === true) {
|
||||
list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1);
|
||||
$result = $storage1->deleteAll($internalPath1);
|
||||
$result = $storage1->unlink($internalPath1);
|
||||
}
|
||||
} else {
|
||||
$source = $this->fopen($path1 . $postFix1, 'r');
|
||||
|
|
Loading…
Reference in a new issue