diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 12:20:11 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 12:20:11 +0100 |
commit | c465835e856601ccbe2643f690b0bc38ca5c3aa8 (patch) | |
tree | 55e7bf961c7c9c932eed6c449184167b21af8edb | |
parent | 11ca01403408413cbbe48c8d78c41802998868b7 (diff) | |
download | nextcloud-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.php | 2 |
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'); |