Browse Source

properly set the size of directories

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@755473 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
a29bda0274
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/tar/TarEntry.java

+ 2
- 1
src/main/org/apache/tools/tar/TarEntry.java View File

@@ -215,12 +215,13 @@ public class TarEntry implements TarConstants {
if (nameLength == 0 || name.charAt(nameLength - 1) != '/') {
this.name.append("/");
}
this.size = 0;
} else {
this.mode = DEFAULT_FILE_MODE;
this.linkFlag = LF_NORMAL;
this.size = file.length();
}

this.size = file.length();
this.modTime = file.lastModified() / MILLIS_PER_SECOND;
this.devMajor = 0;
this.devMinor = 0;


Loading…
Cancel
Save