Package ch.cern.mig.utils

Examples of ch.cern.mig.utils.RegExpFilenameFilter


    long now = System.currentTimeMillis() / 1000;
    long oldtemp = now - maxTemp;
    long oldlock = now - maxLock;
    if (oldtemp > 0 || oldlock > 0) {
      for (File element : elements) {
        File[] inElements = element.listFiles(new RegExpFilenameFilter(
            Pattern.compile("\\."), false));
        if (inElements == null)
          continue;
        for (File inElement : inElements) {
          FileStat stat = null;
View Full Code Here


    @Override
    public boolean buildElements() {
      while (!dirs.isEmpty()) {
        String dir = dirs.remove(0);
        File[] content = new File(queue.path + File.separator + dir)
            .listFiles(new RegExpFilenameFilter(Queue.ElementRegexp));
        if (content == null || content.length == 0)
          continue;
        Arrays.sort(content);
        for (File element : content) {
          elts.add(dir + File.separator + element.getName());
View Full Code Here

TOP

Related Classes of ch.cern.mig.utils.RegExpFilenameFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.