function FileTransfer::isFile

Same name in other branches
  1. 7.x includes/filetransfer/filetransfer.inc \FileTransfer::isFile()
  2. 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::isFile()
  3. 8.9.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::isFile()
  4. 11.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\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 core/lib/Drupal/Core/FileTransfer/FileTransfer.php
Returns the chroot property for this connection.
4 methods override FileTransfer::isFile()
FTPExtension::isFile in core/lib/Drupal/Core/FileTransfer/FTPExtension.php
Checks if a particular path is a file (not a directory).
Local::isFile in core/lib/Drupal/Core/FileTransfer/Local.php
Checks if a particular path is a file (not a directory).
SSH::isFile in core/lib/Drupal/Core/FileTransfer/SSH.php
Checks if a particular path is a file (not a directory).
TestFileTransfer::isFile in core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php
Checks if a particular path is a file (not a directory).

File

core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 395

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public abstract function isFile($path);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.