Here you can find the source of isBlackListedDirectory(Path path)
private static boolean isBlackListedDirectory(Path path)
//package com.java2s; //License from project: Open Source License import java.nio.file.Path; public class Main { private static final String[] DIR_BLACKLIST = new String[] { "\\bin", "\\screenshots" }; private static boolean isBlackListedDirectory(Path path) { for (final String black : DIR_BLACKLIST) { if (path.toAbsolutePath().toString().contains(black)) { return true; }// ww w . j a v a2 s . c o m } return false; } }