Shinmera / file-attributes

Access to common file attributes (uid, gid, permissions, ctime, mtime, atime)
https://shinmera.github.io/file-attributes
zlib License
17 stars 2 forks source link

Implement `stat`-like struct API discussed in issue #10 #11

Closed dangerdyke closed 4 months ago

dangerdyke commented 4 months ago

Here, hopefully this will work. I got sick and didn't finish this until later then I'd have liked x.x

Tested on the linux, unix, and windows backends. I made a best-effort attempt at adding this to the mezzano backend, but haven't actually tested it myself. Up to you whether to merge that commit or not.

Also encountered and fixed a preexisting bug in the linux backend where the statx syscall would return an error when stating broken symlinks.

Shinmera commented 4 months ago

Anyway, hope you're doing well again! Please don't worry about taking your time with it. Health is more important.

dangerdyke commented 4 months ago

Thank you, I'm feeling better this week fortunately :)

This commit should fix everything you pointed out. Let me know if there's any other changes needed

Shinmera commented 4 months ago

Looks good now, thank you very much!