function FileTransfer::removeDirectory

Same name in other branches
  1. 7.x includes/filetransfer/filetransfer.inc \FileTransfer::removeDirectory()
  2. 8.9.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeDirectory()
  3. 10 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeDirectory()
  4. 11.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::removeDirectory()

Removes a directory.

Parameters

string $directory: The directory to be removed.

1 call to FileTransfer::removeDirectory()
FTPExtension::removeDirectoryJailed in core/lib/Drupal/Core/FileTransfer/FTPExtension.php
Removes a directory.

File

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

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public final function removeDirectory($directory) {
    $directory = $this->fixRemotePath($directory);
    $this->checkPath($directory);
    $this->removeDirectoryJailed($directory);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.