diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-05 14:00:49 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-05 14:03:44 +0100 |
commit | 30673e478672af316c057f562a8a02babdbd3160 (patch) | |
tree | 90c5156def04dee80e9f96ce41ad2e49c34bb3df /lib/filesystemview.php | |
parent | 25e777ef5e9c68ac45d32b71a0174febf74d47ef (diff) | |
download | nextcloud-server-30673e478672af316c057f562a8a02babdbd3160.tar.gz nextcloud-server-30673e478672af316c057f562a8a02babdbd3160.zip |
writable not writeable
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r-- | lib/filesystemview.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 6c2ca916310..4586507a811 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -141,8 +141,8 @@ class OC_FilesystemView { public function is_readable($path){ return $this->basicOperation('is_readable',$path); } - public function is_writeable($path){ - return $this->basicOperation('is_writeable',$path); + public function is_writable($path){ + return $this->basicOperation('is_writable',$path); } public function file_exists($path){ if($path=='/'){ @@ -166,7 +166,7 @@ class OC_FilesystemView { return $this->basicOperation('unlink',$path,array('delete')); } public function rename($path1,$path2){ - if(OC_FileProxy::runPreProxies('rename',$path1,$path2) and $this->is_writeable($path1) and OC_Filesystem::isValidPath($path2)){ + if(OC_FileProxy::runPreProxies('rename',$path1,$path2) and $this->is_writable($path1) and OC_Filesystem::isValidPath($path2)){ $run=true; OC_Hook::emit( OC_Filesystem::CLASSNAME, OC_Filesystem::signal_rename, array( OC_Filesystem::signal_param_oldpath => $path1 , OC_Filesystem::signal_param_newpath=>$path2, OC_Filesystem::signal_param_run => &$run)); if($run){ |