Improve os.getFileSize documentation to specify the unit.
This commit is contained in:
parent
ab31b776ef
commit
d221e6a35c
1 changed files with 2 additions and 1 deletions
|
|
@ -1616,7 +1616,8 @@ proc sleep*(milsecs: int) {.rtl, extern: "nos$1", tags: [TimeEffect].} =
|
||||||
|
|
||||||
proc getFileSize*(file: string): BiggestInt {.rtl, extern: "nos$1",
|
proc getFileSize*(file: string): BiggestInt {.rtl, extern: "nos$1",
|
||||||
tags: [ReadIOEffect].} =
|
tags: [ReadIOEffect].} =
|
||||||
## returns the file size of `file`. Can raise ``OSError``.
|
## returns the file size of `file` (in bytes). An ``OSError`` exception is
|
||||||
|
## raised in case of an error.
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
var a: WIN32_FIND_DATA
|
var a: WIN32_FIND_DATA
|
||||||
var resA = findFirstFile(file, a)
|
var resA = findFirstFile(file, a)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue