public class Mounter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.io.File |
chooseMountPath(FileSystem system)
Automatically chooses an available mount path
|
static boolean |
isMounted(java.io.File mountPath)
Tries to check whether the mount path is already in use.
|
static boolean |
mount(FileSystem fileSystem,
java.io.File mountPath)
Mounts the specified file system on the mount path
|
static boolean |
mount(FileSystem fileSystem,
java.io.File mountPath,
MountOptions options)
Mounts the specified file system on the mount path
|
static boolean |
mount(FileSystem fileSystem,
java.io.File mountPath,
MountOptions options,
DriverHandler driverHandler)
Mounts the specified file system on the mount path
|
static boolean |
openExplorerWindow(java.io.File mountPath)
A small utility function which opens the file explorer
|
static boolean |
unmount(java.io.File mountPath)
Unmounts the specified mount path.
|
static boolean |
unmount(FileSystem fileSystem)
Unmounts the specified file system
|
public static java.io.File chooseMountPath(FileSystem system) throws NoDriveLetterLeftException
system
- the file systemNoDriveLetterLeftException
public static boolean mount(FileSystem fileSystem, java.io.File mountPath)
fileSystem
- the file systemmountPath
- the mount pathpublic static boolean mount(FileSystem fileSystem, java.io.File mountPath, MountOptions options)
fileSystem
- the file systemmountPath
- the mount pathoptions
- mount optionspublic static boolean mount(FileSystem fileSystem, java.io.File mountPath, MountOptions options, DriverHandler driverHandler)
fileSystem
- the file systemmountPath
- the mount pathoptions
- mount optionsdriverHandler
- handles the situation in case the driver loading process failspublic static boolean isMounted(java.io.File mountPath)
mountPath
- the mount pathpublic static boolean unmount(java.io.File mountPath)
mountpath
- the mount pathpublic static boolean unmount(FileSystem fileSystem)
fileSystem
- the file systempublic static boolean openExplorerWindow(java.io.File mountPath)
mountPath
- the path to open