function FTPExtension::isDirectory

Same name in other branches
  1. 9 core/lib/Drupal/Core/FileTransfer/FTPExtension.php \Drupal\Core\FileTransfer\FTPExtension::isDirectory()
  2. 10 core/lib/Drupal/Core/FileTransfer/FTPExtension.php \Drupal\Core\FileTransfer\FTPExtension::isDirectory()
  3. 11.x core/lib/Drupal/Core/FileTransfer/FTPExtension.php \Drupal\Core\FileTransfer\FTPExtension::isDirectory()

Overrides FileTransfer::isDirectory

1 call to FTPExtension::isDirectory()
FTPExtension::chmodJailed in core/lib/Drupal/Core/FileTransfer/FTPExtension.php
Changes the permissions of the file / directory specified in $path

File

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

Class

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

Namespace

Drupal\Core\FileTransfer

Code

public function isDirectory($path) {
    $result = FALSE;
    $curr = ftp_pwd($this->connection);
    if (@ftp_chdir($this->connection, $path)) {
        $result = TRUE;
    }
    ftp_chdir($this->connection, $curr);
    return $result;
}

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