Update find_file.lua
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
function find_file(dbh, domain_name, domain_uuid, file_name)
|
function find_file(dbh, domain_name, domain_uuid, file_name)
|
||||||
|
|
||||||
-- if we specify e.g. full path
|
-- if we specify e.g. full path
|
||||||
if (is_absolute_path(file_name) and file.exists(file_name)) then
|
if (is_absolute_path(file_name) and file.exists(file_name)) then
|
||||||
log.debugf('found file `%s` in file system', file_name)
|
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
|
end
|
||||||
|
|
||||||
local file_name_only = basename(file_name)
|
local file_name_only = basename(file_name)
|
||||||
|
|
||||||
local is_base64, found
|
local is_base64, found
|
||||||
|
|
||||||
if file_name_only == file_name then -- this can be recordings
|
if file_name_only == file_name then -- this can be recordings
|
||||||
|
|||||||
Reference in New Issue
Block a user