diff options
Diffstat (limited to 'file.lua')
-rw-r--r-- | file.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/file.lua b/file.lua index 12bd5a1..d7fcc4e 100644 --- a/file.lua +++ b/file.lua @@ -65,6 +65,7 @@ function is_absolute_path(path) -- POSIX systems permit backslashes in filenames return path:sub(1,1) == '/' elseif os_path_separator == '\\' then + if path:sub(2,2) == ':' then return true end -- DOS drive letter followed by volume separator local f = path:sub(1,1) return f == '/' or f == '\\' else |