Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-05-22 22:41:56 +0000
committerGreg Wilkins2015-05-22 22:41:56 +0000
commitc9be4d10fc3cdddbad860ab9eda5017077732755 (patch)
tree24cbfb6ca1c46e244cd23d21da207b37d7c9f7a2
parent43780f6c78b6be4f9825e6fe926e0a20aa988349 (diff)
downloadorg.eclipse.jetty.project-c9be4d10fc3cdddbad860ab9eda5017077732755.tar.gz
org.eclipse.jetty.project-c9be4d10fc3cdddbad860ab9eda5017077732755.tar.xz
org.eclipse.jetty.project-c9be4d10fc3cdddbad860ab9eda5017077732755.zip
468008 Scanner ignores directory length
-rw-r--r--jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java2
1 files changed, 1 insertions, 1 deletions
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 848aa08e6a..fe974ead0b 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
{

Back to the top