lunarmodules / Penlight

A set of pure Lua libraries focusing on input data handling (such as reading configuration files), functional programming (such as map, reduce, placeholder expressions,etc), and OS path management. Much of the functionality is inspired by the Python standard libraries.
https://lunarmodules.github.io/Penlight/
MIT License
1.9k stars 238 forks source link

Fix path.exists #481

Closed jlaurens closed 2 months ago

jlaurens commented 2 months ago

return attrib(P,'mode') ~= nil and P actually returns P or false which does not follow the documentation.

alerque commented 2 months ago

Just for future reference, you don't have to (and most projects would prefer you did not) open new PRs to tweak something. Just update the commits in the branch you submitted and push (or force push) to the branch and the PR will update.