[Pkg-owncloud-commits] [owncloud] 01/44: Replace deleteAll call with unlink call

David Prévot taffit at moszumanska.debian.org
Fri Mar 7 13:27:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 149814d95bf77e5f0e1dc3fa802246646271c5f6
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Mon Feb 24 12:20:11 2014 +0100

    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.
---
 lib/private/files/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index a7e3f53..3b89cd0 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');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list