java.lang.Object
org.cryptomator.frontend.dokany.mount.MountOptionParser

public class MountOptionParser extends Object
Utility class for processing a string of mount options.

Each option starts with "--" (GNU-style). Different options must be separated with at least one whitespace. Available options are: (GNU-long-option -- Description)

  • "thread-count" -- "Number of threads to be used by Dokan library internally. More threads will handle more events at the same time." "timeout" -- "Maximum timeout in milliseconds of each request before Dokany gives up to wait events to complete and unmounts the filesystem." "options" -- "Features enabled for the mount given as a comma separated list without whitespaces. Supported features are DEBUG_MODE, STD_ERR_OUTPUT, MOUNT_MANAGER, CURRENT_SESSION, REMOVABLE_DRIVE, WRITE_PROTECTION and DISPATCH_DRIVER_LOGS. For their description see the Dokany API documentation."
    • Constructor Details

      • MountOptionParser

        public MountOptionParser()
    • Method Details

      • parse

        public static org.cryptomator.frontend.dokany.mount.MountOptionParser.MountOptions parse(String argsString) throws org.apache.commons.cli.ParseException, IllegalArgumentException
        Throws:
        org.apache.commons.cli.ParseException
        IllegalArgumentException
      • info

        public static String info()
        Gives info about the supported mount options and the format.
        Returns:
        An information string