Fix document missing on docify

This commit is contained in:
lxsang
2020-12-05 11:09:52 +00:00
parent 38b1665a8b
commit 6eb9400e69
10 changed files with 21 additions and 11 deletions

View File

@ -50,8 +50,10 @@ local merge_files = function(data)
cmd = "chmod 777 "..vfs.ospath(fpath)
os.execute(cmd)
else
if not vfs.move(firstfile, fpath) then
return error("Unable to move file")
local cmd = "mv \""..vfs.ospath(firstfile).."\" \""..vfs.ospath(fpath).."\""
os.execute(cmd)
if not vfs.exists(fpath) then
return error("Unable to move PDF file")
end
end
-- move the thumb file to the cache folder