You are here

abstract public function FileTransfer::isFile in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::isFile()
  2. 9 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.

2 methods override FileTransfer::isFile()
Local::isFile in core/lib/Drupal/Core/FileTransfer/Local.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 343

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public abstract function isFile($path);