Checks if a file or directory exists.
Parameters
$path
stringrequired- 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.
$path
stringrequiredpublic 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.