- Timestamp:
- 02/16/2023 10:11:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r55204 r55354 630 630 } 631 631 632 $ret = array(); 632 $path = trailingslashit( $path ); 633 $ret = array(); 633 634 634 635 while ( false !== ( $entry = $dir->read() ) ) { … … 648 649 } 649 650 650 $struc['perms'] = $this->gethchmod( $path . '/' .$entry );651 $struc['perms'] = $this->gethchmod( $path . $entry ); 651 652 $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); 652 653 $struc['number'] = false; 653 $struc['owner'] = $this->owner( $path . '/' .$entry );654 $struc['group'] = $this->group( $path . '/' .$entry );655 $struc['size'] = $this->size( $path . '/' .$entry );656 $struc['lastmodunix'] = $this->mtime( $path . '/' .$entry );654 $struc['owner'] = $this->owner( $path . $entry ); 655 $struc['group'] = $this->group( $path . $entry ); 656 $struc['size'] = $this->size( $path . $entry ); 657 $struc['lastmodunix'] = $this->mtime( $path . $entry ); 657 658 $struc['lastmod'] = gmdate( 'M j', $struc['lastmodunix'] ); 658 659 $struc['time'] = gmdate( 'h:i:s', $struc['lastmodunix'] ); 659 $struc['type'] = $this->is_dir( $path . '/' .$entry ) ? 'd' : 'f';660 $struc['type'] = $this->is_dir( $path . $entry ) ? 'd' : 'f'; 660 661 661 662 if ( 'd' === $struc['type'] ) { 662 663 if ( $recursive ) { 663 $struc['files'] = $this->dirlist( $path . '/' .$struc['name'], $include_hidden, $recursive );664 $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); 664 665 } else { 665 666 $struc['files'] = array();
Note: See TracChangeset
for help on using the changeset viewer.