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.
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);