parent
6db86e0f5b
commit
9113eeebb9
@ -0,0 +1,26 @@
|
||||
package com.olexyn.ensync.util;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class IgnoreUtil {
|
||||
|
||||
public static List<String> IGNORE = new ArrayList<>();
|
||||
|
||||
|
||||
public static boolean noIgnore(Path path) {
|
||||
for (var line : IGNORE) {
|
||||
line = line
|
||||
.replace("/", "")
|
||||
.replace("\\", "");
|
||||
var pathX = path.toString()
|
||||
.replace("/", "")
|
||||
.replace("\\", "");
|
||||
if (pathX.contains(line)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue