asSetting

@JvmStatic
fun asSetting(directory: File): TorSetting(source)

Creates the setting.

Throws

If absoluteFile2 has to reference the filesystem to construct an absolute path and fails due to a filesystem security exception.