mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
add os.getCacheDir (#18126)
* add `os.getCacheDir` * fixup * address comments
This commit is contained in:
@@ -556,6 +556,9 @@ block getTempDir:
|
||||
else:
|
||||
doAssert getTempDir() == "/tmp"
|
||||
|
||||
block: # getCacheDir
|
||||
doAssert getCacheDir().dirExists
|
||||
|
||||
block osenv:
|
||||
block delEnv:
|
||||
const dummyEnvVar = "DUMMY_ENV_VAR" # This env var wouldn't be likely to exist to begin with
|
||||
|
||||
Reference in New Issue
Block a user