Move And Merge Missing Items (LCC.web_file.move_merge)
Signature
ok, err = LCC.web_file.move_merge(src, target, timeout?)
Parameters
- src
String. Source path. - target
String. Destination path. - timeout
Number, optional. Request timeout in seconds, default60.
Returns
- ok
Boolean.trueon success,nilon failure. - err
String ornil. Error description when the move fails.
Notes
Shorthand for
web_file.movewithmode = "merge".
Keeps existing files at the destination and only moves missing ones.
Example
local ok, err = LCC.web_file.move_merge("/assets/temp", "/assets/live")
if not ok then
error(err)
end