fitzgen / is_executable

Is there an executable file at the given path?
Apache License 2.0
17 stars 8 forks source link

Check if the file is a directory or clarify documentation #3

Closed j0ru closed 3 years ago

j0ru commented 3 years ago

The docs only mention files, but the executable flag can also be set for directories (which makes them traversable) and the lib treats them the same. I think this should be clarified in the docs.

fitzgen commented 3 years ago

Probably this crate should distinguish between files and directories. Docs could definitely also be improved. Happy to review a PR if you want to send one!