docs: public static String getParentDirPath(final String path, final char separator) {
          final int lastSlashIdx = path.lastIndexOf(separator);
          if (lastSlashIdx <= 0) {
              return "";
          }
          return path.substring(0, lastSlashIdx);
      }