If I do a stat
command on a file under Btrfs, I get something like the following output:
Access: 2020-03-10 14:52:58.095399291 +1100
Modify: 2020-02-21 02:36:29.595148361 +1100
Change: 2020-02-21 17:20:59.692104719 +1100
Birth: 2020-02-20 17:59:44.372828264 +1100
How do I get the 4 times in Python?
I tried doing os.stat()
, however birth time doesn't exist there. I found crtime in past answers, but that requires sudo
, which stat
doesn't.
I could parse stat
results myself, but ideally there is something that already exists.