src/Folder.php
public static function create($path='', $mode=0777)
  {
    $path = Path::clean($path);
    
    $fs = new Filesystem();
    
    try {
      $fs->mkdir($path);
    } catch(IOExceptionInterface $e){
      throw new Exception(Helper::getTranslation('FAILED_CREATING').' '.$e->getPath());
    }
    
    return true;
  }
public static function create($path='', $mode=0777)
  {
    $path = Path::clean($path);
    
    $fs = new Filesystem();
    
    try {
      $fs->mkdir($path);
    } catch(IOExceptionInterface $e){
      throw new Exception(Helper::getTranslation('FAILED_CREATING').' '.$e->getPath());
    }
    
    return true;
  }
Creates a directory recursively.

@param string|array|\Traversable $dirs The directory path
@param int                       $mode The directory mode
@throws Exception On any directory creation failure