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:
Vincent Petry 2014-02-24 12:20:11 +01:00
parent 11ca014034
commit c465835e85
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ class View {
$result = $this->copy($path1, $path2); $result = $this->copy($path1, $path2);
if ($result === true) { if ($result === true) {
list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1); list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1);
$result = $storage1->deleteAll($internalPath1); $result = $storage1->unlink($internalPath1);
} }
} else { } else {
$source = $this->fopen($path1 . $postFix1, 'r'); $source = $this->fopen($path1 . $postFix1, 'r');