- Timestamp:
- 08/09/2022 11:32:01 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php
r53862 r53872 416 416 * and ftp_rawlist() to check for file existence. 417 417 * 418 * @param string $ filePath to file or directory.419 * @return bool Whether $ fileexists or not.420 */ 421 public function exists( $ file) {422 if ( $this->is_dir( $ file) ) {418 * @param string $path Path to file or directory. 419 * @return bool Whether $path exists or not. 420 */ 421 public function exists( $path ) { 422 if ( $this->is_dir( $path ) ) { 423 423 return true; 424 424 } 425 425 426 return ! empty( ftp_rawlist( $this->link, $ file) );426 return ! empty( ftp_rawlist( $this->link, $path ) ); 427 427 } 428 428 … … 476 476 * @since 2.5.0 477 477 * 478 * @param string $ filePath to file or directory.479 * @return bool Whether $ fileis writable.480 */ 481 public function is_writable( $ file) {478 * @param string $path Path to file or directory. 479 * @return bool Whether $path is writable. 480 */ 481 public function is_writable( $path ) { 482 482 return true; 483 483 }
Note: See TracChangeset
for help on using the changeset viewer.