function FileTransfer::removeFile
Same name in other branches
- 7.x includes/filetransfer/filetransfer.inc \FileTransfer::removeFile()
- 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeFile()
- 10 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeFile()
- 11.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeFile()
Removes a file.
Parameters
string $destination: The destination file to be removed.
1 call to FileTransfer::removeFile()
- FTPExtension::removeDirectoryJailed in core/
lib/ Drupal/ Core/ FileTransfer/ FTPExtension.php - Removes a directory.
File
-
core/
lib/ Drupal/ Core/ FileTransfer/ FileTransfer.php, line 194
Class
- FileTransfer
- Defines the base FileTransfer class.
Namespace
Drupal\Core\FileTransferCode
public final function removeFile($destination) {
$destination = $this->fixRemotePath($destination);
$this->checkPath($destination);
$this->removeFileJailed($destination);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.