HADOOP-6645. Re: Bugs on listStatus for HarFileSystem (rodrigo via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@927134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mahadev Konar 2010-03-24 17:51:38 +00:00
parent 35de12b8ed
commit e381af1e1e
2 changed files with 7 additions and 1 deletions

View File

@ -295,6 +295,9 @@ Trunk (unreleased changes)
HADOOP-6645. Bugs on listStatus for HarFileSystem (rodrigo via mahadev)
HADOOP-6645. Re: Bugs on listStatus for HarFileSystem (rodrigo via
mahadev)
Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -409,7 +409,10 @@ private void fileStatusesInIndex(HarStatus parent, List<FileStatus> statuses,
LineReader aLin;
long read = 0;
aLin = new LineReader(aIn, getConf());
String parentString = parent.getName() + Path.SEPARATOR;
String parentString = parent.getName();
if (!parentString.endsWith(Path.SEPARATOR)){
parentString += Path.SEPARATOR;
}
Path harPath = new Path(parentString);
int harlen = harPath.depth();
Text line = new Text();