scoop:scoop.platform:0.1.0
src/env/temporary.scoop
Selected production source · src/env/temporary.scoop
1
package scoop.platform.env3
import scoop.platform.fs.Path4
import scoop.platform.fs.NativeOsString6
/**7
* Returns an independent copy of the system's temporary directory path. The query does not8
* guarantee that the directory exists or is writable.9
*/10
public fun temporaryDirectory(): Path {11
@Unsafe12
{13
return nativeTemporaryDirectory().takePath("temporary directory")14
}15
}17
@Extern(name = "scoop_platform_temporary_directory_result")18
private fun nativeTemporaryDirectory(): NativeOsString