diff options
Diffstat (limited to 'lib/std/private/oscommon.nim')
-rw-r--r-- | lib/std/private/oscommon.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/private/oscommon.nim b/lib/std/private/oscommon.nim index 8d0df3086..66725395f 100644 --- a/lib/std/private/oscommon.nim +++ b/lib/std/private/oscommon.nim @@ -86,16 +86,16 @@ type when defined(posix) and not weirdTarget: proc getSymlinkFileKind*(path: string): - tuple[pc: PathComponent, isRegular: bool] = + tuple[pc: PathComponent, isSpecial: bool] = # Helper function. var s: Stat assert(path != "") - result = (pcLinkToFile, true) + result = (pcLinkToFile, false) if stat(path, s) == 0'i32: if S_ISDIR(s.st_mode): - result = (pcLinkToDir, true) + result = (pcLinkToDir, false) elif not S_ISREG(s.st_mode): - result = (pcLinkToFile, false) + result = (pcLinkToFile, true) proc tryMoveFSObject*(source, dest: string, isDir: bool): bool {.noWeirdTarget.} = ## Moves a file (or directory if `isDir` is true) from `source` to `dest`. |