first release
This commit is contained in:
parent
405b86068e
commit
916c25f9a7
321 changed files with 1785 additions and 1808 deletions
7
lib/os.nim
Executable file → Normal file
7
lib/os.nim
Executable file → Normal file
|
|
@ -294,6 +294,10 @@ proc existsDir*(dir: string): bool
|
|||
proc getLastModificationTime*(file: string): TTime
|
||||
## Gets the time of the `file`'s last modification.
|
||||
|
||||
proc fileNewer*(a, b: string): bool
|
||||
## returns true if the file `a` is newer than file `b`, i.e. if `a`'s
|
||||
## modification time is later than `b`'s.
|
||||
|
||||
# procs dealing with environment variables:
|
||||
proc putEnv*(key, val: string)
|
||||
## Sets the value of the environment variable named `key` to `val`.
|
||||
|
|
@ -936,4 +940,7 @@ else:
|
|||
|
||||
proc paramCount(): int = return cmdCount-1
|
||||
|
||||
proc fileNewer(a, b: string): bool =
|
||||
result = getLastModificationTime(a) - getLastModificationTime(b) > 0
|
||||
|
||||
{.pop.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue