Hi,
I’m agree, probably the access aproach isn’t the best one for this. The problem is Open allow to check read and write permissions, but don’t allow to check excecution permissions. Is there any function to do this?
Anyway, the API for check permissions about my current users is really limited, and non-intuitive, for example, I have a permissions trait, to check the permissions of the file, I can check if the file is read_only, but i can’t check if the file is readable, or writeable, or executable. And the workaround of use Open and OpenOptions works, but IMHO it isn’t intuitive.
I think the Permissions trait, or the PermissionsExt trait, can be more useful with this kind of checks.
I can write a crate with a trait with this, but I think is something that I expect to find in the standard library.