Create is_absolute_path.lua
This commit is contained in:
parent
db531692be
commit
778f470aef
|
|
@ -0,0 +1,3 @@
|
|||
function is_absolute_path(file_name)
|
||||
return string.sub(file_name, 1, 1) == '/' or string.sub(file_name, 2, 1) == ':'
|
||||
end
|
||||
Loading…
Reference in New Issue