public FTPExtension::isDirectory($path)
Checks if a particular path is a directory.
string $path: The path to check
bool TRUE if the specified path is a directory, FALSE otherwise.
Overrides FileTransfer::isDirectory
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!FileTransfer!FTPExtension.php/function/FTPExtension::isDirectory/8.1.x