W3cubDocs

/Drupal 8

public final function FileTransfer::removeDirectory

public final FileTransfer::removeDirectory($directory)

Removes a directory.

Parameters

string $directory: The directory to be removed.

File

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

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!FileTransfer!FileTransfer.php/function/FileTransfer::removeDirectory/8.1.x