diff options
author | Brice Maron <brice@bmaron.net> | 2011-11-01 22:35:13 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-11-01 22:35:13 +0100 |
commit | c7d1737d47c1846beee5d145dd73dd7924a6eea9 (patch) | |
tree | 15570e22b38ba794b7068e9a652e429e75f63df7 /lib/filestorage | |
parent | e533e82bc9526ef9869b20e99b745c210348218f (diff) | |
download | nextcloud-server-c7d1737d47c1846beee5d145dd73dd7924a6eea9.tar.gz nextcloud-server-c7d1737d47c1846beee5d145dd73dd7924a6eea9.zip |
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.php | 5 |
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); |