public Path resolvePath(String path) { LocalFileStore fs = Hub.instance.getPublicFileStore(); if (fs == null) return null; if (StringUtil.isEmpty(path)) return fs.getFilePath().resolve("dcw/" + this.getAlias()); if (path.charAt(0) == '/') return fs.getFilePath().resolve("dcw/" + this.getAlias() + path); return fs.getFilePath().resolve("dcw/" + this.getAlias() + "/" + path); }
public Path getPath() { LocalFileStore fs = Hub.instance.getPublicFileStore(); if (fs == null) return null; return fs.getFilePath().resolve("dcw/" + this.getAlias()); }