code: protected static function _clear($fileName, $filePath)
      {
          if (!in_array($fileName, ['.', '..', '.gitkeep', '.htaccess'])) {
              if (is_file($filePath)) {
                  @unlink($filePath);
              } else {
                  self::clearTmp($filePath);
              }
          }
      }
docs: Check if resource could be deleted, then delete it's a file or
  call recursive folder deletion if it's a directory.
  
  @param string $fileName
  @param string $filePath