Now it can get the index of the inode by a file's name in the specified directory