I'd like to read file access times in a portable way. I found accessTime
in System.Posix.Files
, but it's POSIX only. Is there a portable, cross-platform way that would work both on Windows and POSIX systems?
How to get file access times in Haskell (cross-platform)?
1.2k Views Asked by Petr At
4
There are 4 best solutions below
2

You can use unix-compat to get both Windows and POSIX support for a lot of the functionality in the unix
package.
How about System.Directory.getModificationTime for modification time? For access time I'm not sure there is a portable way.