Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2022-07-22 11:30:44 +0300
committerGitHub <noreply@github.com>2022-07-22 11:30:44 +0300
commit07a6d3bc8032f678330220457e3f298170c01057 (patch)
tree8b93fd36a6df2b149ffdcd5f9f7507b1a5668950 /lua
parent5b11a3f7a2e0a4eb8d37bce2fe2996c09e0eba5c (diff)
fix(path) ensure win paths like "c:\\" are directories (#436)
Diffstat (limited to 'lua')
-rw-r--r--lua/pl/path.lua3
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