@Override
  public UfsFileStatus getFileStatus(String path, GetStatusOptions options) throws IOException {
    String tpath = stripPath(path);
    File file = new File(tpath);
    try {
      PosixFileAttributes attr =
          Files.readAttributes(Paths.get(file.getPath()), PosixFileAttributes.class);
      if (attr.isDirectory()) {
        throw new IOException(String.format("path %s is not a file", path));
      }
      String contentHash = getContentHash(options.isIncludeRealContentHash(), file);
      return new UfsFileStatus(path, contentHash, file.length(), file.lastModified(),
          attr.owner().getName(), attr.group().getName(),
          FileUtils.translatePosixPermissionToMode(attr.permissions()),
          mUfsConf.getBytes(PropertyKey.USER_BLOCK_SIZE_BYTES_DEFAULT));
    } catch (FileSystemException e) {
      throw new FileNotFoundException(e.getMessage());
    }
  }
@Test
  public void getFileStatus() throws IOException {
    String file = PathUtils.concatPath(mLocalUfsRoot, getUniqueFileName());
    mLocalUfs.create(file).close();
    UfsFileStatus s = mLocalUfs.getFileStatus(file);
    assertFalse(s.isDirectory());
    assertTrue(s.isFile());
  }