summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-24 12:20:11 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-24 12:20:11 +0100
commitc465835e856601ccbe2643f690b0bc38ca5c3aa8 (patch)
tree55e7bf961c7c9c932eed6c449184167b21af8edb
parent11ca01403408413cbbe48c8d78c41802998868b7 (diff)
downloadnextcloud-server-c465835e856601ccbe2643f690b0bc38ca5c3aa8.tar.gz
nextcloud-server-c465835e856601ccbe2643f690b0bc38ca5c3aa8.zip
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.
-rw-r--r--lib/private/files/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 530aa8f7514..5206e4f01b7 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -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');