Copy And Merge Missing Items (LCC.web_file.copy_merge)
Signature
ok, err = LCC.web_file.copy_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 copy fails.
Notes
Shortcut for
web_file.copywithmode = "merge".
Only missing files/directories are added; existing ones stay untouched.
Example
local ok, err = LCC.web_file.copy_merge("/templates", "/deploy/templates")
if not ok then
error(err)
end