JBZoo\Utils\FS::isDir PHP 메소드

isDir() 공개 정적인 메소드

Check is current path directory
public static isDir ( string $path ) : boolean
$path string
리턴 boolean
    public static function isDir($path)
    {
        $path = self::clean($path);
        return is_dir($path);
    }

Usage Example

예제 #1
0
파일: Leafo.php 프로젝트: jbzoo/less
 /**
  * {@inheritdoc}
  */
 public function setImportPath($fullPath, $relPath = null)
 {
     $this->_initCompiler();
     if (!FS::isDir($fullPath)) {
         throw new Exception('Undefined import path: ' . $fullPath);
     }
     $fullPath = FS::getRelative($fullPath, $this->_options->get('root_path'));
     $this->_compiler->addImportDir($fullPath);
 }
All Usage Examples Of JBZoo\Utils\FS::isDir