Tries to create a VFSTransport from an URI using the following format: vfs:scheme://path Where scheme is any scheme in the providers.xml file
Tries to create a VFSTransport from an URI using the following format: vfs:scheme://path Where scheme is any scheme in the providers.xml file
import com.zengularity.benji.vfs.VFSTransport def init1 = VFSTransport("vfs:file:///home/someuser/somedir") // or def init2 = VFSTransport(new java.net.URI("vfs:file:///home/someuser/somedir"))
the config type to be consumed by the provider typeclass
the config element used by the provider to generate the URI
a typeclass that try to generate an URI from the config element
Success if the VFSTransport was properly created, otherwise Failure
Initializes a transport based on the given FS manager.
Initializes a transport based on the given FS manager.
the VFS manager
import org.apache.commons.vfs2.{ FileSystemManager, VFS } import com.zengularity.benji.vfs.VFSTransport def fsManager: FileSystemManager = VFS.getManager() implicit def vfsTransport = VFSTransport(fsManager)
Initialies a transport based on a temporary FS manager.
Initialies a transport based on a temporary FS manager. If the specified directory doesn't exist, it will be created.
the base name for the temporary directory
import com.zengularity.benji.vfs.VFSTransport implicit def vfsTransport = VFSTransport.temporary("foo")
VFS transport factory.