diff options
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;
}
|