public final function FileTransfer::removeFile

public final FileTransfer::removeFile($destination)

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!FileTransfer!FileTransfer.php/function/FileTransfer::removeFile/8.1.x