summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-03-03 18:02:07 +0100
committerRobin Appelman <icewind@owncloud.com>2012-03-03 21:23:35 +0100
commit2e365658c856e1dffd1ee748db40158fdda0edc3 (patch)
tree7b43b4a6057796fbc65a0dce9af13e062fb9497d /lib/filesystemview.php
parent4c45483ad3acd5b675e54893686f912a32f10a12 (diff)
downloadnextcloud-server-2e365658c856e1dffd1ee748db40158fdda0edc3.tar.gz
nextcloud-server-2e365658c856e1dffd1ee748db40158fdda0edc3.zip
better handeling of files that can behave like folder (e.g. archives)
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 2d54a676c8c..89e0385fe9c 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -205,6 +205,7 @@ class OC_FilesystemView {
$count=OC_Helper::streamCopy($data,$target);
$storage1=$this->getStorage($path1);
$storage1->unlink($this->getInternalPath($path1));
+ $result=$count>0;
}
OC_Hook::emit( OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_rename, array( OC_Filesystem::signal_param_oldpath => $path1, OC_Filesystem::signal_param_newpath=>$path2));
return $result;