Scoop API

scoop:scoop.platform:0.1.0

src/env/temporary.scoop

Selected production source · src/env/temporary.scoop

1package scoop.platform.env
3import scoop.platform.fs.Path
4import scoop.platform.fs.NativeOsString
6/**
7 * Returns an independent copy of the system's temporary directory path. The query does not
8 * guarantee that the directory exists or is writable.
9 */
10public fun temporaryDirectory(): Path {
11 @Unsafe
12 {
13 return nativeTemporaryDirectory().takePath("temporary directory")
14 }
17@Extern(name = "scoop_platform_temporary_directory_result")
18private fun nativeTemporaryDirectory(): NativeOsString