diff --git a/plugins/nf-quilt/src/main/nextflow/quilt/QuiltProduct.groovy b/plugins/nf-quilt/src/main/nextflow/quilt/QuiltProduct.groovy index add707f2..5b129d75 100644 --- a/plugins/nf-quilt/src/main/nextflow/quilt/QuiltProduct.groovy +++ b/plugins/nf-quilt/src/main/nextflow/quilt/QuiltProduct.groovy @@ -231,8 +231,7 @@ ${meta['workflow']['stats']['processes']} } List match(String glob) throws IOException { - String dir = pkg.packageDest() - Path folder = Paths.get(dir) + Path folder = pkg.install() FileSystem fs = FileSystems.getDefault() PathMatcher pathMatcher = fs.getPathMatcher("glob:${glob}") List matches = [] diff --git a/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltFileSystem.groovy b/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltFileSystem.groovy index 62d71e00..d349f333 100644 --- a/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltFileSystem.groovy +++ b/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltFileSystem.groovy @@ -107,7 +107,7 @@ final class QuiltFileSystem extends FileSystem implements Closeable { QuiltFileAttributes readAttributes(QuiltPath path) { //log.debug("QuiltFileAttributes QuiltFileSystem.readAttributes($path)") - Path installedPath = path.localPath() + Path installedPath = path.localPath(true) try { BasicFileAttributes attrs = Files.readAttributes(installedPath, BasicFileAttributes) return new QuiltFileAttributes(path, path.toString(), attrs) diff --git a/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltPath.groovy b/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltPath.groovy index 2d7aefe3..fe549bee 100644 --- a/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltPath.groovy +++ b/plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltPath.groovy @@ -71,8 +71,8 @@ final class QuiltPath implements Path, Comparable { return sub_paths() } - Path localPath() { - Path pkgPath = pkg().packageDest() + Path localPath(boolean shouldInstall = false) { + Path pkgPath = shouldInstall ? pkg().install() : pkg().packageDest() assert pkgPath return Paths.get(pkgPath.toUriString(), sub_paths()) }