28
28
-- calls `cp -r SOURCE/* TARGET` only when there is something in SOURCE
29
29
-- otherwise it deletes contents in the target if there.
34
34
if [ "$(ls -A ^target)" ]; then rm -rf ^target/*; fi
37
37
onCreate = prefix..[[cp -r ^sourcePath ^targetPathdir]],
39
39
onModify = prefix..[[cp -r ^sourcePath ^targetPathdir]],
41
41
onDelete = prefix..[[rm -rf ^targetPath]],
43
43
onMove = prefix..[[mv ^o.targetPath ^d.targetPath]],