Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val isAndroid: Boolean
Link copied to clipboard
abstract val isBrowser: Boolean
Link copied to clipboard
abstract val isJvm: Boolean
Link copied to clipboard
abstract val isNative: Boolean
Link copied to clipboard
abstract val isNode: Boolean

Inherited properties

Link copied to clipboard

The delimiter of segments in a path. For example in Linux: /home/user/documents or Windows: C:\Program Files\Notepad.EXE

Functions

Link copied to clipboard
abstract fun osInfo(): OperatingSystem

Get the operating system info

Inherited functions

Link copied to clipboard
abstract fun fileExists(path: String): Boolean

Check if a file exists at the path.

Link copied to clipboard
abstract fun getAllEnvVars(): Map<String, String>

Get a map of all environment variables.

Link copied to clipboard
abstract fun getAllProperties(): Map<String, String>

Get a map of all JVM system properties.

Link copied to clipboard
abstract fun getenv(key: String): String?

Get an environment variable or null

Link copied to clipboard
abstract fun getProperty(key: String): String?

Get a system property (on supported platforms)

Link copied to clipboard
abstract suspend fun readFileOrNull(path: String): ByteArray?

Read the contents of a file as a String or return null on any error.

Link copied to clipboard
abstract suspend fun writeFile(path: String, data: ByteArray)

Write the contents of a file. File will be created if it doesn't exist. Existing files will be overwritten.