Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-11-02 01:35:13 +0400
committerBrice Maron <brice@bmaron.net>2011-11-02 01:35:13 +0400
commitc7d1737d47c1846beee5d145dd73dd7924a6eea9 (patch)
tree15570e22b38ba794b7068e9a652e429e75f63df7 /lib/filestorage
parente533e82bc9526ef9869b20e99b745c210348218f (diff)
attempt to manage some special chars in file list
Added a jquery function to filter by attributes. Add more logging in rename file Use the new function to avoid errors
Diffstat (limited to 'lib/filestorage')
-rw-r--r--lib/filestorage/local.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php
index 01523b6b0b3..9e29f85071a 100644
--- a/lib/filestorage/local.php
+++ b/lib/filestorage/local.php
@@ -84,6 +84,11 @@ class OC_Filestorage_Local extends OC_Filestorage{
return $return;
}
public function rename($path1,$path2){
+ if(! $this->file_exists($path1)){
+ OC_Log::write('core','unable to rename, file does not exists : '.$path1,OC_Log::ERROR);
+ return false;
+ }
+
if($return=rename($this->datadir.$path1,$this->datadir.$path2)){
$this->clearFolderSizeCache($path1);
$this->clearFolderSizeCache($path2);