function FileTransfer::isFile

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

$path: The path to check

Return value

boolean

1 call to FileTransfer::isFile()
FileTransfer::findChroot in includes/filetransfer/filetransfer.inc
Return the chroot property for this connection.
4 methods override FileTransfer::isFile()
FileTransferFTPExtension::isFile in includes/filetransfer/ftp.inc
Checks if a particular path is a file (not a directory).
FileTransferLocal::isFile in includes/filetransfer/local.inc
Checks if a particular path is a file (not a directory).
FileTransferSSH::isFile in includes/filetransfer/ssh.inc
Checks if a particular path is a file (not a directory).
TestFileTransfer::isFile in modules/simpletest/tests/filetransfer.test
Checks if a particular path is a file (not a directory).

File

includes/filetransfer/filetransfer.inc, line 282

Class

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.