diff options
author | dec05eba <dec05eba@dec05ebas-iMac.local> | 2018-09-29 22:03:50 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | e7ebd55c31148089eb54ffbd708216c1c7cb09ff (patch) | |
tree | 2a55e1bfe6ce3e2f8ca6c21d8046565abcafd4d9 /src/FileUtil.cpp | |
parent | 19370a2213efe960e959832145a165d6e2ad6a65 (diff) |
Add support for macos
Diffstat (limited to 'src/FileUtil.cpp')
-rw-r--r-- | src/FileUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index 222edbb..e3d4c3c 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -129,7 +129,7 @@ namespace sibs { struct stat64 fileStat; if (stat64(path, &fileStat) == 0) - return Result<u64>::Ok(fileStat.st_mtim.tv_sec); + return Result<u64>::Ok(fileStat.st_mtime); else { string errMsg = "File not found: "; |