Create is_absolute_path.lua

This commit is contained in:
FusionPBX 2018-02-10 13:39:54 -07:00 committed by GitHub
parent 90f5a3a16a
commit 4e0edb644c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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