org.cryptomator.cryptofs.PatternPathMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptofs Show documentation
Show all versions of cryptofs Show documentation
This library provides the Java filesystem provider used by Cryptomator.
package org.cryptomator.cryptofs;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
import java.util.regex.Pattern;
class PatternPathMatcher implements PathMatcher {
private final Pattern pattern;
public PatternPathMatcher(Pattern pattern) {
this.pattern = pattern;
}
/**
* @deprecated for testing
*/
@Deprecated
Pattern getPattern() {
return pattern;
}
@Override
public boolean matches(Path path) {
return pattern.matcher(path.toString()).matches();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy