From 88598bb2f779b73479512d818c675dea8fa72138 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 22 Jul 2011 09:37:14 -0400 Subject: [PATCH] Documentation. Unit testing. Checkstyle. Findbugs. --- 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 ce8cdf9..310e35a 100644 --- a/src/com/gitblit/utils/FileUtils.java +++ b/src/com/gitblit/utils/FileUtils.java @@ -73,10 +73,11 @@ } long length = 0; for (File file : directory.listFiles()) { - if (file.isFile()) + if (file.isFile()) { length += file.length(); - else + } else { length += folderSize(file); + } } return length; } -- Gitblit v1.9.1