diff options
author | James Moger <james.moger@gitblit.com> | 2011-07-22 09:37:14 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-07-22 09:37:14 -0400 |
commit | 88598bb2f779b73479512d818c675dea8fa72138 (patch) | |
tree | 77e1a8e89da1faa3444f03aefa8a201f77010e9e /src/com/gitblit/utils/FileUtils.java | |
parent | 0d3e3ca5b85d7e81066030a5081ea3a9cbe76607 (diff) | |
download | gitblit-88598bb2f779b73479512d818c675dea8fa72138.tar.gz gitblit-88598bb2f779b73479512d818c675dea8fa72138.zip |
Documentation. Unit testing. Checkstyle. Findbugs.
Diffstat (limited to 'src/com/gitblit/utils/FileUtils.java')
-rw-r--r-- | src/com/gitblit/utils/FileUtils.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/gitblit/utils/FileUtils.java b/src/com/gitblit/utils/FileUtils.java index ce8cdf94..310e35a9 100644 --- a/src/com/gitblit/utils/FileUtils.java +++ b/src/com/gitblit/utils/FileUtils.java @@ -73,10 +73,11 @@ public class FileUtils { }
long length = 0;
for (File file : directory.listFiles()) {
- if (file.isFile())
+ if (file.isFile()) {
length += file.length();
- else
+ } else {
length += folderSize(file);
+ }
}
return length;
}
|