Allow for sharing of connections with data files

This commit is contained in:
crschnick 2024-01-17 17:31:18 +00:00
parent ab9059881c
commit f1966c0e39

View file

@ -80,6 +80,10 @@ public class ContextualFileReference {
return path.replaceAll("/", Matcher.quoteReplacement(sc != null ? sc.getOsType().getFileSystemSeparator() : "/")); return path.replaceAll("/", Matcher.quoteReplacement(sc != null ? sc.getOsType().getFileSystemSeparator() : "/"));
} }
public boolean isInDataDirectory() {
return serialize().contains("<DATA>");
}
public String serialize() { public String serialize() {
var start = getDataDir(); var start = getDataDir();
var normalizedPath = normalized(path); var normalizedPath = normalized(path);