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

Breadcrumb

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

function FTPExtension::removeFileJailed

Overrides FileTransfer::removeFileJailed

File

core/lib/Drupal/Core/FileTransfer/FTPExtension.php, line 75

Class

FTPExtension
Defines a file transfer class using the PHP FTP extension.

Namespace

Drupal\Core\FileTransfer

Code

protected function removeFileJailed($destination) {
    if (!ftp_delete($this->connection, $destination)) {
        throw new FileTransferException("Unable to remove the file @file", 0, [
            '@file' => $destination,
        ]);
    }
}

API Navigation

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