getOrCreate

@JvmStatic
protected fun getOrCreate(resourceDir: File, extract: (resourceDir: File) -> GeoipFiles, extractTor: (resourceDir: File) -> File, configureEnv: MutableMap<String, String>.(resourceDir: File) -> Unit, toString: (resourceDir: File) -> String): ResourceLoader.Tor(source)

For implementors of Exec.

NOTE: extract and extractTor are always invoked while holding a lock and are synchronized.

Throws

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

UnsupportedOperationException

On Kotlin/JS-Browser if absoluteFile2 references the filesystem to construct an absolute path.