mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Allow for sharing of connections with data files
This commit is contained in:
parent
ab9059881c
commit
f1966c0e39
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue