vsi_sync function

Synchronize a source file/directory with a target file/directory