X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=lib%2Fjetty%2Forg%2Feclipse%2Fjetty%2Futil%2FScanner.java;fp=lib%2Fjetty%2Forg%2Feclipse%2Fjetty%2Futil%2FScanner.java;h=2aba5b39a20f32b1e29149402add1e7e7739801f;hp=f29db3daac4d0cdb0a5b5c9715f4bfcb3a28085d;hb=ba4f228fa9f72d50991a2218cfd83987ef5d385e;hpb=875b5e9651498a0cd8e0001c0742ba843e47cad0 diff --git a/lib/jetty/org/eclipse/jetty/util/Scanner.java b/lib/jetty/org/eclipse/jetty/util/Scanner.java index f29db3da..2aba5b39 100644 --- a/lib/jetty/org/eclipse/jetty/util/Scanner.java +++ b/lib/jetty/org/eclipse/jetty/util/Scanner.java @@ -1,6 +1,6 @@ // // ======================================================================== -// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. +// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Eclipse Public License v1.0 @@ -557,12 +557,16 @@ public class Scanner extends AbstractLifeCycle { if ((_filter == null) || ((_filter != null) && _filter.accept(f.getParentFile(), f.getName()))) { - LOG.debug("scan accepted {}",f); + 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 - LOG.debug("scan rejected {}",f); + { + if (LOG.isDebugEnabled()) + LOG.debug("scan rejected {}",f); + } } // If it is a directory, scan if it is a known directory or the depth is OK.