Beispiel #1
0
 /**
  * If the <code>path</code> is a directory, returns all the direct entries in it. If the <code>
  * path</code> is a file, returns its ClientFileInfo.
  *
  * @param path the target directory/file path
  * @return A list of FileInfo, null if the file or folder does not exist.
  * @throws IOException when the underlying master RPC fails
  */
 @Override
 public synchronized List<FileInfo> listStatus(TachyonURI path) throws IOException {
   validateUri(path);
   try {
     return mFSMasterClient.getFileInfoList(getFileStatus(-1, path).getFileId());
   } catch (FileDoesNotExistException e) {
     throw new IOException(e);
   }
 }