Perl project #5
Write a JScript script named sync_fold.js that synchronizes contents of two folders, more exactly the scripts does
the following:
- The script should take two folder names as arguments and make sure that they contain the same information.
- If a file is absent in one folder, but present in another, the file should be copied over to the folder where
it's missing.
- If both folders contain the same file but different versions of the file the new version should be copied.
- All sub-folders should be also recursively synchronized.
- Script should also print the information about files copied.
- If the script gets less than two arguments or one of the arguments is not a folder name, then the script should
produce an error message and a short help for the user.