fitzgen / is_executable

Is there an executable file at the given path?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check if the file is a directory or clarify documentation

j0ru opened this issue · comments

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.

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!