mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
Add staticFileExists and staticDirExists (#22278)
This commit is contained in:
8
tests/stdlib/tstaticos.nim
Normal file
8
tests/stdlib/tstaticos.nim
Normal file
@@ -0,0 +1,8 @@
|
||||
import std/[assertions, staticos, os]
|
||||
|
||||
block:
|
||||
static:
|
||||
doAssert staticDirExists("MISSINGFILE") == false
|
||||
doAssert staticFileExists("MISSINGDIR") == false
|
||||
doAssert staticDirExists(currentSourcePath().parentDir)
|
||||
doAssert staticFileExists(currentSourcePath())
|
||||
Reference in New Issue
Block a user