Copy With Overwrite-And-Merge (LCC.web_file.copy_overwrite_merge)
Signature
ok, err = LCC.web_file.copy_overwrite_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
Alias for
web_file.copywithmode = "overwrite-merge".
Overwrites files that exist at the destination, then fills in missing entries.
Example
local ok, err = LCC.web_file.copy_overwrite_merge("/templates", "/deploy/templates")
if not ok then
error(err)
end