1 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
- core/
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;
}