/// <exception cref="System.IO.IOException"/> /// <exception cref="Org.Apache.Hadoop.FS.UnresolvedLinkException"/> public override FileStatus GetFileLinkStatus(Path f) { HdfsFileStatus fi = dfs.GetFileLinkInfo(GetUriPath(f)); if (fi != null) { return(fi.MakeQualified(GetUri(), f)); } else { throw new FileNotFoundException("File does not exist: " + f); } }
/// <exception cref="System.IO.IOException"/> public static HdfsFileStatus GetFileStatus(DFSClient client, string fileIdPath) { return(client.GetFileLinkInfo(fileIdPath)); }