1.20.x ftp.inc | public FileTransferFTPExtension::isDirectory($path) |
Checks if a particular path is a directory
Parameters
$path: The path to check
Return value
boolean:
Overrides FileTransfer::isDirectory
File
- includes/
filetransfer/ ftp.inc, line 109
Class
Code
public function isDirectory($path) {
$result = FALSE;
$curr = ftp_pwd($this->connection);
if (@ftp_chdir($this->connection, $path)) {
$result = TRUE;
}
ftp_chdir($this->connection, $curr);
return $result;
}