Update find_file.lua

This commit is contained in:
FusionPBX
2018-02-10 15:32:36 -07:00
committed by GitHub
parent 5412489442
commit 9cc13cd7d4

View File

@@ -1,4 +1,6 @@
function find_file(dbh, domain_name, domain_uuid, file_name)
-- if we specify e.g. full path
if (is_absolute_path(file_name) and file.exists(file_name)) then
log.debugf('found file `%s` in file system', file_name)
@@ -6,7 +8,6 @@ function find_file(dbh, domain_name, domain_uuid, file_name)
end
local file_name_only = basename(file_name)
local is_base64, found
if file_name_only == file_name then -- this can be recordings