private boolean looksLikePartition(String directoryName) {
    try {
      // The convention is simply to use Java long as partition IDs.
      Long.parseLong(directoryName);
    } catch (NumberFormatException e) {
      return false;
    }
    return true;
  }
Checks whether a directory name looks like a partition.
@param directoryName the name of the directory to check.
@return True if the directory name looks like a partition, false otherwise.
ambry-store/src/main/java/com/github/ambry/store/PartitionFinder.java