mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Fix cleanup in info/logfiles api.
This commit is contained in:
parent
6e80ca8aa2
commit
43eaab4cbf
@ -74,12 +74,10 @@ function M.logfiles(request, response)
|
||||
|
||||
--[[ remove temporary files ]]--
|
||||
|
||||
if ultip and ultip == 'directory' then
|
||||
for file in lfs.dir(ULTIFI_PATH) do
|
||||
if file ~= '.' and file ~= '..' then
|
||||
local tgtLogFile = LOG_COLLECT_DIR .. '/' .. file .. '-' .. ULTIFI_LOG_FILENAME
|
||||
local rv,sig,code = redirectedExecute('rm ' .. tgtLogFile)
|
||||
end
|
||||
for file in lfs.dir(LOG_COLLECT_DIR) do
|
||||
if file:find(PRINT3D_LOG_FILENAME_PREFIX) == 1 and file:find(PRINT3D_LOG_FILENAME_SUFFIX) ~= nil then
|
||||
local tgtLogFile = LOG_COLLECT_DIR .. '/' .. file
|
||||
local rv,sig,code = redirectedExecute('rm ' .. tgtLogFile)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user