docs: public static String getParentDirectory(String filePath) throws IllegalArgumentException {
          if (Pattern.matches(sPatternUrl, filePath))
              return getURLParentDirectory(filePath);
  
          return new File(filePath).getParent();
      }