JBZoo\Utils\FS::isDir PHP Method

isDir() public static method

Check is current path directory
public static isDir ( string $path ) : boolean
$path string
return 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