Skip to content

Commit

Permalink
Fix path.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens committed Jul 15, 2024
1 parent f3d8e99 commit 137d305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pl/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ end
-- @return the file path if it exists (either as file, directory, socket, etc), nil otherwise
function path.exists(P)
assert_string(1,P)
return attrib(P,'mode') ~= nil and P
return attrib(P,'mode') ~= nil and P or nil
end

--- Return the time of last access as the number of seconds since the epoch.
Expand Down

0 comments on commit 137d305

Please sign in to comment.