You are here

final public function FileTransfer::removeFile in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeFile()
  2. 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeFile()

Removes a file.

Parameters

string $destination: The destination file to be removed.

File

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

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public final function removeFile($destination) {
  $destination = $this
    ->fixRemotePath($destination);
  $this
    ->checkPath($destination);
  $this
    ->removeFileJailed($destination);
}