Changeset 55354
- Timestamp:
- 02/16/2023 10:11:32 PM (3 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 4 edited
-
class-wp-filesystem-direct.php (modified) (2 diffs)
-
class-wp-filesystem-ftpext.php (modified) (1 diff)
-
class-wp-filesystem-ftpsockets.php (modified) (2 diffs)
-
class-wp-filesystem-ssh2.php (modified) (2 diffs)
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(); -
trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php
r55205 r55354 762 762 } 763 763 764 $ret = array(); 764 $path = trailingslashit( $path ); 765 $ret = array(); 765 766 766 767 foreach ( (array) $dirlist as $struc ) { 767 768 if ( 'd' === $struc['type'] ) { 768 769 if ( $recursive ) { 769 $struc['files'] = $this->dirlist( $path . '/' .$struc['name'], $include_hidden, $recursive );770 $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); 770 771 } else { 771 772 $struc['files'] = array(); -
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r55205 r55354 646 646 } 647 647 648 $ret = array(); 648 $path = trailingslashit( $path ); 649 $ret = array(); 649 650 650 651 foreach ( $list as $struc ) { … … 664 665 if ( 'd' === $struc['type'] ) { 665 666 if ( $recursive ) { 666 $struc['files'] = $this->dirlist( $path . '/' .$struc['name'], $include_hidden, $recursive );667 $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); 667 668 } else { 668 669 $struc['files'] = array(); -
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r55205 r55354 775 775 } 776 776 777 $path = trailingslashit( $path ); 778 777 779 while ( false !== ( $entry = $dir->read() ) ) { 778 780 $struc = array(); … … 791 793 } 792 794 793 $struc['perms'] = $this->gethchmod( $path . '/' .$entry );795 $struc['perms'] = $this->gethchmod( $path . $entry ); 794 796 $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); 795 797 $struc['number'] = false; 796 $struc['owner'] = $this->owner( $path . '/' .$entry );797 $struc['group'] = $this->group( $path . '/' .$entry );798 $struc['size'] = $this->size( $path . '/' .$entry );799 $struc['lastmodunix'] = $this->mtime( $path . '/' .$entry );798 $struc['owner'] = $this->owner( $path . $entry ); 799 $struc['group'] = $this->group( $path . $entry ); 800 $struc['size'] = $this->size( $path . $entry ); 801 $struc['lastmodunix'] = $this->mtime( $path . $entry ); 800 802 $struc['lastmod'] = gmdate( 'M j', $struc['lastmodunix'] ); 801 803 $struc['time'] = gmdate( 'h:i:s', $struc['lastmodunix'] ); 802 $struc['type'] = $this->is_dir( $path . '/' .$entry ) ? 'd' : 'f';804 $struc['type'] = $this->is_dir( $path . $entry ) ? 'd' : 'f'; 803 805 804 806 if ( 'd' === $struc['type'] ) { 805 807 if ( $recursive ) { 806 $struc['files'] = $this->dirlist( $path . '/' .$struc['name'], $include_hidden, $recursive );808 $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); 807 809 } else { 808 810 $struc['files'] = array();
Note: See TracChangeset
for help on using the changeset viewer.