Changeset 31815
- Timestamp:
- 03/18/2015 07:21:33 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 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 } -
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.