function FileTransfer::removeDirectory

Same name in other branches
  1. 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\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

$directory: The directory to be removed.

1 call to FileTransfer::removeDirectory()
FileTransferFTPExtension::removeDirectoryJailed in includes/filetransfer/ftp.inc
Removes a directory.

File

includes/filetransfer/filetransfer.inc, line 120

Class

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.