Skip to content

Commit

Permalink
providerName = provider?.class?.name?.toLowerCase()
Browse files Browse the repository at this point in the history
unix/win/mac/fat
  • Loading branch information
drernie committed Sep 11, 2023
1 parent 9259c77 commit 550604e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import nextflow.file.FileSystemTransferAware
import nextflow.quilt.jep.QuiltParser
import nextflow.quilt.jep.QuiltPackage
import sun.nio.fs.UnixFileSystemProvider
import sun.nio.fs.MacOSXFileSystemProvider

/**
* Implements NIO File system provider for Quilt Blob Storage
Expand Down Expand Up @@ -89,9 +88,10 @@ class QuiltFileSystemProvider extends FileSystemProvider implements FileSystemTr

static boolean localProvider(Path path) {
FileSystemProvider provider = provider(path)
log.debug("QuiltFileSystemProvider.localProvider[${path}] -> ${provider}")
return provider instanceof UnixFileSystemProvider ||
provider instanceof MacOSXFileSystemProvider
String providerName = provider?.class?.name?.toLowerCase() ?: '-'
log.debug("QuiltFileSystemProvider.localProvider[${path}] -> ${providerName}")
return providerName.startsWith("unix") || providerName.startsWith("win") ||\
providerName.startsWith("mac") || providerName.startsWith("fat")
}

boolean canDownload(Path source, Path target) {
Expand Down

0 comments on commit 550604e

Please sign in to comment.