Fix creating a new file (#179)
This commit is contained in:
parent
55a6888818
commit
f637dc4db8
|
@ -229,7 +229,7 @@ end
|
|||
|
||||
|
||||
function common.normalize_path(filename)
|
||||
if PATHSEP == '\\' then
|
||||
if filename and PATHSEP == '\\' then
|
||||
filename = filename:gsub('[/\\]', '\\')
|
||||
local drive, rem = filename:match('^([a-zA-Z])(:.*)')
|
||||
return drive and drive:upper() .. rem or filename
|
||||
|
|
Loading…
Reference in New Issue