Subversion Repositories XServices

Rev

Rev 147 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 147 Rev 156
Line 137... Line 137...
137
    	try {
137
    	try {
138
			Files.walkFileTree(dir.toPath(), EnumSet.of(FileVisitOption.FOLLOW_LINKS), depth, finder);
138
			Files.walkFileTree(dir.toPath(), EnumSet.of(FileVisitOption.FOLLOW_LINKS), depth, finder);
139
			logger.info("FileWalker returned '"+finder.getCount()+"' hits. '" + finder.getTotal() + "' files have been scanned.");
139
			logger.info("FileWalker returned '"+finder.getCount()+"' hits. '" + finder.getTotal() + "' files have been scanned.");
140
			List<Path> result = finder.getResult();
140
			List<Path> result = finder.getResult();
141
	    	for(Path f : result) {
141
	    	for(Path f : result) {
-
 
142
	    		if(! withDirectories) {
-
 
143
	    			if(f.toFile().isDirectory()) continue;
-
 
144
	    		}
-
 
145
	    		if(! withFiles) {
-
 
146
	    			if(f.toFile().isFile()) continue;
-
 
147
	    		}
142
	    		list.add(new FileInfoType(f, baseuri));
148
	    		list.add(new FileInfoType(f, baseuri));
143
	    	}
149
	    	}
144
		} catch (IOException e2) {
150
		} catch (IOException e2) {
145
			logger.error(e2.getMessage(), e2);;
151
			logger.error(e2.getMessage(), e2);;
146
		}
152
		}