try {
FileSystem fs = getFileSystem(path, false);
FileStatus fi = fs.getFileStatus(new Path(path));
if (fi != null) {
fi.makeQualified(fs);
return new DfsFileStatus(fi.getPath().toString(), fi.getLen(), fi.isDir(),
fi.getModificationTime(), fi.getAccessTime());
} else {
throw new FsShellFileNotFoundException("File does not exist: " + path);
}