On Friday, 4 May 2018 at 15:42:56 UTC, wjoe wrote: > I think that's not possible. You can't query information that > hasn't been stored. I stand corrected. As Russel Winder points out there are file systems that store this information and since Linux 4.11 you can query it via statx(2).