for (FileStatus status : fileStatus) {
results.put(status.getPath(), srcFs.getContentSummary(status.getPath()).getLength());
}
}
else {
FileStatus items[] = srcFs.listStatus(FileUtil.stat2Paths(fileStatus, srcPath));
if (ObjectUtils.isEmpty(items) && (!srcFs.exists(srcPath))) {
throw new HadoopException("Cannot access " + src + ": No such file or directory.");
}
for (FileStatus status : items) {
Long size = (status.isDir() ? srcFs.getContentSummary(status.getPath()).getLength() : status.getLen());