Caching fix for OSX
This commit is contained in:
parent
7bc53080e8
commit
1748279553
1 changed files with 3 additions and 1 deletions
|
|
@ -59,8 +59,10 @@ proc getFileDate(fullpath: string): string =
|
||||||
cmd =
|
cmd =
|
||||||
when defined(Windows):
|
when defined(Windows):
|
||||||
&"cmd /c for %a in ({fullpath.quoteShell}) do echo %~ta"
|
&"cmd /c for %a in ({fullpath.quoteShell}) do echo %~ta"
|
||||||
else:
|
elif defined(Linux):
|
||||||
&"stat -c %y {fullpath.quoteShell}"
|
&"stat -c %y {fullpath.quoteShell}"
|
||||||
|
elif defined(OSX):
|
||||||
|
&"stat -f %m {fullpath.quoteShell}"
|
||||||
|
|
||||||
(result, ret) = gorgeEx(cmd)
|
(result, ret) = gorgeEx(cmd)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue