CommandLineUtil
object CommandLineUtil
Class containing some useful methods used by command line tools
Functions
Link copied to clipboard
Loads a specific Directory implementation
Link copied to clipboard
Loads a specific FSDirectory implementation
Link copied to clipboard
Creates a specific FSDirectory instance starting from its class name
fun newFSDirectory(clazzName: String, path: Path, lf: LockFactory = FSLockFactory.default): FSDirectory
Creates a specific FSDirectory instance starting from its class name, using the default lock factory
fun newFSDirectory(clazz: KClass<out FSDirectory>, path: Path, lf: LockFactory = FSLockFactory.default): FSDirectory
Creates a new specific FSDirectory instance