示例#1
0
  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);
  }
示例#2
0
  public Path getPath() {
    LocalFileStore fs = Hub.instance.getPublicFileStore();

    if (fs == null) return null;

    return fs.getFilePath().resolve("dcw/" + this.getAlias());
  }