code: public static boolean isStorageDirAccessible(String path) {
      Path filePath = Paths.get(path);
      return Files.exists(filePath)
          && Files.isReadable(filePath)
          && Files.isWritable(filePath)
          && Files.isExecutable(filePath);
    }
docs: Checks if a storage directory path is accessible.
  
  @param path the given path
  @return true if path exists, false otherwise