abstract public function FileTransfer::isFile

Checks if a particular path is a file (not a directory).

Parameters

string $path: The path to check.

Return value

bool TRUE if the specified path is a file, FALSE otherwise.

1 call to FileTransfer::isFile()
FileTransfer::findChroot in drupal/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
Returns the chroot property for this connection.
4 methods override FileTransfer::isFile()
FTPExtension::isFile in drupal/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
Implements Drupal\Core\FileTransfer\FileTransfer::isFile().
Local::isFile in drupal/core/lib/Drupal/Core/FileTransfer/Local.php
Implements Drupal\Core\FileTransfer\FileTransfer::isFile().
SSH::isFile in drupal/core/lib/Drupal/Core/FileTransfer/SSH.php
Implements Drupal\Core\FileTransfer\FileTransfer::isFile().
TestFileTransfer::isFile in drupal/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php
Checks if a particular path is a file (not a directory).

File

drupal/core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 348
Definition of Drupal\Core\FileTransfer\FileTransfer.

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public abstract function isFile($path);