public function FileTransferFTPExtension::isDirectory in Drupal 7
Checks if a particular path is a directory
Parameters
$path: The path to check
Return value
boolean
Overrides FileTransfer::isDirectory
1 call to FileTransferFTPExtension::isDirectory()
- FileTransferFTPExtension::chmodJailed in includes/
filetransfer/ ftp.inc - Changes the permissions of the file / directory specified in $path
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;
}