From 88598bb2f779b73479512d818c675dea8fa72138 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 22 Jul 2011 09:37:14 -0400 Subject: Documentation. Unit testing. Checkstyle. Findbugs. --- src/com/gitblit/utils/FileUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/gitblit/utils/FileUtils.java') 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; } -- cgit v1.2.3