@Override
  public FileInfo getFileInfo(String ufsFullPath, GetStatusPOptions options)
      throws IOException, AccessControlException {
    long syncIntervalMs = options.hasCommonOptions()
        ? (options.getCommonOptions().hasSyncIntervalMs()
        ? options.getCommonOptions().getSyncIntervalMs() : -1) :
        -1;
    alluxio.grpc.FileInfo fi = getGrpcFileInfo(ufsFullPath, syncIntervalMs);
    int cachedPercentage = getCachedPercentage(fi, ufsFullPath);

    return GrpcUtils.fromProto(fi)
        .setInAlluxioPercentage(cachedPercentage)
        .setInMemoryPercentage(cachedPercentage);
  }
@Test
  public void testGetFileInfoDir()
      throws AccessControlException, IOException {
    File f = mTestFolder.newFolder();

    alluxio.wire.FileInfo result =
        mWorker.getFileInfo(f.getPath(), GetStatusPOptions.getDefaultInstance());
    assertTrue(result.isFolder());

    result = mWorker.getFileInfo(f.getPath(), GET_STATUS_OPTIONS_MUST_SYNC);
    assertTrue(result.isFolder());
  }