Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FileTransfer.php

function 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 246

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal