mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
Improve os.getFileSize documentation to specify the unit.
This commit is contained in:
@@ -1616,7 +1616,8 @@ proc sleep*(milsecs: int) {.rtl, extern: "nos$1", tags: [TimeEffect].} =
|
||||
|
||||
proc getFileSize*(file: string): BiggestInt {.rtl, extern: "nos$1",
|
||||
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):
|
||||
var a: WIN32_FIND_DATA
|
||||
var resA = findFirstFile(file, a)
|
||||
|
||||
Reference in New Issue
Block a user