mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) apply filter to dir list to only show .black files as blacklists
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5438 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
c4c4c223b9
commit
19e7c56f7f
|
@ -58,6 +58,8 @@ public class sharedBlacklist_p {
|
|||
public static final int STATUS_PEER_UNKNOWN = 3;
|
||||
public static final int STATUS_URL_PROBLEM = 4;
|
||||
public static final int STATUS_WRONG_INVOCATION = 5;
|
||||
|
||||
private final static String BLACKLIST_FILENAME_FILTER = "^.*\\.black$";
|
||||
|
||||
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
|
||||
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
|
||||
|
@ -83,7 +85,7 @@ public class sharedBlacklist_p {
|
|||
|
||||
|
||||
// loading all blacklist files located in the directory
|
||||
final List<String> dirlist = listManager.getDirListing(listManager.listsPath);
|
||||
final List<String> dirlist = listManager.getDirListing(listManager.listsPath, BLACKLIST_FILENAME_FILTER);
|
||||
|
||||
// List BlackLists
|
||||
int blacklistCount = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user