Typo fixes from DD32. fixes #6818 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@7785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-23 01:14:26 +00:00
parent 202cb03220
commit 41ab0e3935

View File

@ -47,7 +47,7 @@ class WP_Filesystem_Direct{
if( ! $this->is_dir($file) ) if( ! $this->is_dir($file) )
return @chgrp($file,$group); return @chgrp($file,$group);
//Is a directory, and we want recursive //Is a directory, and we want recursive
$file = trailingshashit($file); $file = trailingslashit($file);
$filelist = $this->dirlist($file); $filelist = $this->dirlist($file);
foreach($filelist as $filename) foreach($filelist as $filename)
$this->chgrp($file . $filename, $group, $recursive); $this->chgrp($file . $filename, $group, $recursive);
@ -64,7 +64,7 @@ class WP_Filesystem_Direct{
if( ! $this->is_dir($file) ) if( ! $this->is_dir($file) )
return @chmod($file,$mode); return @chmod($file,$mode);
//Is a directory, and we want recursive //Is a directory, and we want recursive
$file = trailingshashit($file); $file = trailingslashit($file);
$filelist = $this->dirlist($file); $filelist = $this->dirlist($file);
foreach($filelist as $filename) foreach($filelist as $filename)
$this->chmod($file . $filename, $mode, $recursive); $this->chmod($file . $filename, $mode, $recursive);
@ -177,7 +177,7 @@ class WP_Filesystem_Direct{
} }
function copy($source,$destination,$overwrite=false){ function copy($source,$destination,$overwrite=false){
if( $overwrite && $this->exists($destination) ) if( ! $overwrite && $this->exists($destination) )
return false; return false;
return copy($source,$destination); return copy($source,$destination);
} }