- 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-ftpext.php
r31215 r31815 276 276 public function exists($file) { 277 277 $list = @ftp_nlist($this->link, $file); 278 279 if ( empty( $list ) && $this->is_dir( $file ) ) { 280 return true; // File is an empty directory. 281 } 282 278 283 return !empty($list); //empty list = no file, so invert. 279 284 }
Note: See TracChangeset
for help on using the changeset viewer.