diff options
| -rw-r--r-- | nimterop/build.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nimterop/build.nim b/nimterop/build.nim index 28f2b3c..dbdcd4c 100644 --- a/nimterop/build.nim +++ b/nimterop/build.nim @@ -244,7 +244,9 @@ proc getFileDate*(fullpath: string): string = ret = 0 cmd = when defined(Windows): - &"cmd /c for %a in ({fullpath.sanitizePath}) do echo %~ta" + let + (head, tail) = fullpath.splitPath() + &"cmd /c forfiles /P {head.sanitizePath()} /M {tail.sanitizePath} /C \"cmd /c echo @fdate @ftime @fsize\"" elif defined(Linux): &"stat -c %y {fullpath.sanitizePath}" elif defined(OSX) or defined(FreeBSD): |
