From c9be4d10fc3cdddbad860ab9eda5017077732755 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Sat, 23 May 2015 08:41:56 +1000 Subject: [PATCH] 468008 Scanner ignores directory length --- jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java b/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java index 848aa08e6ab..fe974ead0b7 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java @@ -560,7 +560,7 @@ public class Scanner extends AbstractLifeCycle if (LOG.isDebugEnabled()) LOG.debug("scan accepted {}",f); String name = f.getCanonicalPath(); - scanInfoMap.put(name, new TimeNSize(f.lastModified(),f.length())); + scanInfoMap.put(name, new TimeNSize(f.lastModified(),f.isDirectory()?0:f.length())); } else {