Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51170, comment 19


Ignore:
Timestamp:
03/26/2022 06:05:06 PM (4 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51170, comment 19

    initial v1  
    1717// Run NLST on the directory.
    1818$dir   = dirname( $file );
    19 $files = ftp_nlist( $this->link, dir );
     19
     20// Run with '-a' flag to include hidden files.
     21$files = ftp_nlist( $this->link, '-a ' . dir );
    2022
    2123return $files && in_array( $file, $files, true );