Gaufrette\Adapter\Ftp::isDir PHP 메소드

isDir() 개인적인 메소드

private isDir ( string $directory ) : boolean
$directory string - full directory path
리턴 boolean
    private function isDir($directory)
    {
        if ('/' === $directory) {
            return true;
        }
        if (!@ftp_chdir($this->getConnection(), $directory)) {
            return false;
        }
        // change directory again to return in the base directory
        ftp_chdir($this->getConnection(), $this->directory);
        return true;
    }