Checks if a file or directory exists.
Parameters
$pathstringrequired- Path to file or directory.
Source
public function exists( $path ) {
return file_exists( $this->sftp_path( $path ) );
}
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
Checks if a file or directory exists.
$pathstringrequiredpublic function exists( $path ) {
return file_exists( $this->sftp_path( $path ) );
}
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.