diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-24 12:20:11 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-25 15:01:38 +0100 |
commit | 149814d95bf77e5f0e1dc3fa802246646271c5f6 (patch) | |
tree | 919cd3a1b16a78f0dee8839ff9a833385557247a /lib | |
parent | 16e24dc4c554a578fe27449a9f04a5db1714a244 (diff) | |
download | nextcloud-server-149814d95bf77e5f0e1dc3fa802246646271c5f6.tar.gz nextcloud-server-149814d95bf77e5f0e1dc3fa802246646271c5f6.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.
Diffstat (limited to 'lib')
-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 a7e3f53ca19..3b89cd02c61 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -410,7 +410,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'); |