Java Path File List nio isBlackListedDirectory(Path path)

Here you can find the source of isBlackListedDirectory(Path path)

Description

is Black Listed Directory

License

Open Source License

Declaration

private static boolean isBlackListedDirectory(Path path) 

Method Source Code

//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;
    }
}

Related

  1. getClassLoaderFromPaths(ArrayList paths)
  2. getDirectoryList(Path basePath)
  3. getPreorderList(Path root)
  4. getSortedPathList(final Path dir, final boolean dirsFirst)
  5. getTables(final List d1)
  6. isPlaylistFile(Path testFile)
  7. list(final Path directory)
  8. list(Path basePath)
  9. listChildren(Path dir)