Skip to content

Commit

Permalink
install before readAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Sep 5, 2023
1 parent 85ff1bc commit f166844
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions plugins/nf-quilt/src/main/nextflow/quilt/QuiltProduct.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ ${meta['workflow']['stats']['processes']}
}

List<Path> 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<Path> matches = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions plugins/nf-quilt/src/main/nextflow/quilt/nio/QuiltPath.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit f166844

Please sign in to comment.