Rsync alternative for Windows

For Windows, rsync is replaced with robocopy to mirror the temp directory into the permanent one. And used Windows commands to delete directories and files.

Not sure if the OS check is safe. Might need further testing. On Windows, it works well for me.