1
0

Use getFileStatus to get single FileStatus for single file

This commit is contained in:
Jian Xu
2017-09-06 15:30:15 -07:00
committed by vinoth chandar
parent 5c639c0b05
commit 7e9a4a89dd

View File

@@ -112,7 +112,7 @@ public class FSUtils {
}
public static long getFileSize(FileSystem fs, Path path) throws IOException {
return fs.listStatus(path)[0].getLen();
return fs.getFileStatus(path).getLen();
}
public static String getFileId(String fullFileName) {