diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2022-07-22 11:30:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 11:30:44 +0300 |
commit | 07a6d3bc8032f678330220457e3f298170c01057 (patch) | |
tree | 8b93fd36a6df2b149ffdcd5f9f7507b1a5668950 /lua | |
parent | 5b11a3f7a2e0a4eb8d37bce2fe2996c09e0eba5c (diff) |
fix(path) ensure win paths like "c:\\" are directories (#436)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/pl/path.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lua/pl/path.lua b/lua/pl/path.lua index a438a9d..1e044e1 100644 --- a/lua/pl/path.lua +++ b/lua/pl/path.lua @@ -121,9 +121,6 @@ end -- @string P A file path function path.isdir(P) assert_string(1,P) - if P:match("\\$") then - P = P:sub(1,-2) - end return attrib(P,'mode') == 'directory' end |