public FTPExtension::isFile($path)
Checks if a particular path is a file (not a directory).
string $path: The path to check.
bool TRUE if the specified path is a file, FALSE otherwise.
Overrides FileTransfer::isFile
public function isFile($path) { return ftp_size($this->connection, $path) != -1; }
© 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::isFile/8.1.x