- Timestamp:
- 03/18/2015 07:21:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r31219 r31815 275 275 public function exists( $file ) { 276 276 $list = $this->ftp->nlist( $file ); 277 278 if ( empty( $list ) && $this->is_dir( $file ) ) { 279 return true; // File is an empty directory. 280 } 281 277 282 return !empty( $list ); //empty list = no file, so invert. 278 283 // Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server.
Note: See TracChangeset
for help on using the changeset viewer.