Changeset 7130 for trunk/wp-admin/includes/class-wp-filesystem-direct.php
- Timestamp:
- 03/02/2008 08:17:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r7129 r7130 88 88 if( !function_exists('posix_getpwuid') ) 89 89 return $owneruid; 90 $ownerarray=posix_getpwuid($owneruid); 90 $ownerarray=posix_getpwuid($owneruid); 91 91 return $ownerarray['name']; 92 92 } … … 122 122 $info = 'u'; 123 123 } 124 124 125 125 // Owner 126 126 $info .= (($perms & 0x0100) ? 'r' : '-'); … … 129 129 (($perms & 0x0800) ? 's' : 'x' ) : 130 130 (($perms & 0x0800) ? 'S' : '-')); 131 131 132 132 // Group 133 133 $info .= (($perms & 0x0020) ? 'r' : '-'); … … 136 136 (($perms & 0x0400) ? 's' : 'x' ) : 137 137 (($perms & 0x0400) ? 'S' : '-')); 138 138 139 139 // World 140 140 $info .= (($perms & 0x0004) ? 'r' : '-'); … … 169 169 if( !function_exists('posix_getgrgid') ) 170 170 return $gid; 171 $grouparray=posix_getgrgid($gid); 171 $grouparray=posix_getgrgid($gid); 172 172 return $grouparray['name']; 173 173 } 174 174 175 175 function copy($source,$destination,$overwrite=false){ 176 176 if( $overwrite && $this->exists($destination) ) … … 211 211 return $retval; 212 212 } 213 213 214 214 function exists($file){ 215 215 return @file_exists($file); … … 231 231 return @is_writable($file); 232 232 } 233 233 234 234 function atime($file){ 235 235 return @fileatime($file); … … 250 250 return @touch($file,$time,$atime); 251 251 } 252 252 253 253 function mkdir($path,$chmod=false,$chown=false,$chgrp=false){ 254 254 if( ! $chmod) 255 255 $chmod = $this->permission; 256 256 257 257 if( !@mkdir($path,$chmod) ) 258 258 return false; … … 276 276 return @rmdir($path); 277 277 } 278 278 279 279 function dirlist($path,$incdot=false,$recursive=false){ 280 280 if( $this->is_file($path) ){ … … 292 292 $struc = array(); 293 293 $struc['name'] = $entry; 294 294 295 295 if( '.' == $struc['name'][0] && !$incdot) 296 296 continue; 297 297 if( $limitFile && $struc['name'] != $limitFile) 298 298 continue; 299 299 300 300 $struc['perms'] = $this->gethchmod($path.'/'.$entry); 301 301 $struc['permsn'] = $this->getnumchmodfromh($struc['perms']); … … 310 310 if ('d' == $struc['type'] ){ 311 311 $struc['files'] = array(); 312 312 313 313 if( $incdot ){ 314 314 //We're including the doted starts
Note: See TracChangeset
for help on using the changeset viewer.