public static function createDir($dir, $mode = 0644) { $dir = self::path($dir); if (!self::exists($dir)) { return mkdir($dir, $mode, true); } }
public function createDir($destination) { if (Filesystem::isDir($destination)) { $this->log('exists', $destination); } else { Filesystem::createDir($destination, 0777); $this->log('created', $destination); } }