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

Breadcrumb

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

function Local::removeFileJailed

Overrides FileTransfer::removeFileJailed

File

core/lib/Drupal/Core/FileTransfer/Local.php, line 92

Class

Local
Defines the local connection class for copying files as the httpd user.

Namespace

Drupal\Core\FileTransfer

Code

protected function removeFileJailed($file) {
    if (@(!$this->fileSystem
        ->unlink($file))) {
        throw new FileTransferException('Cannot remove file %file.', 0, [
            '%file' => $file,
        ]);
    }
}

API Navigation

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