We need to implement a method that accepts a path prefix, and an inode number. The method needs to return the name of the file that has the inode value, or return null if such a file does not exist.
String getFilePathByInode(String pathPrefix, long inode)
One naive way that I can think of is to walk through the files under the directory and examine the inode info of each file. Is there a better way to do this? Thanks!