Typo fixes from DD32. fixes #6818 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@7785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-23 01:14:26 +00:00
parent 5d839715d5
commit 5ea7b64496

View File

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