Filesystem::isDir PHP Method

isDir() public static method

public static isDir ( $path )
    public static function isDir($path)
    {
        return is_dir(self::path($path));
    }

Usage Example

Esempio n. 1
0
 public function createDir($destination)
 {
     if (Filesystem::isDir($destination)) {
         $this->log('exists', $destination);
     } else {
         Filesystem::createDir($destination, 0777);
         $this->log('created', $destination);
     }
 }