summary refs log tree commit diff stats
path: root/lib/std/staticos.nim
blob: 2617c69138a9c3825575edbd906bcd5be030dd59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
## This module implements path handling like os module but works at only compile-time.
## This module works even when cross compiling to OS that is not supported by os module.

proc staticFileExists*(filename: string): bool {.compileTime.} =
  ## Returns true if `filename` exists and is a regular file or symlink.
  ##
  ## Directories, device files, named pipes and sockets return false.
  discard

proc staticDirExists*(dir: string): bool {.compileTime.} =
  ## Returns true if the directory `dir` exists. If `dir` is a file, false
  ## is returned. Follows symlinks.
  discard