public static function setPermissions($path, $mode=0777, $recursive=true)
  {
    $path = Path::clean($path);
    
    $fs = new Filesystem();
    
    try {
      $fs->chmod($path, $mode, 0000, $recursive);
    } catch(IOExceptionInterface $e){
      return false;
    }
    
    return true;
  }