I have 2 directories DIR1 and DIR2
DIR1 is base directory, where new changes come often, sometimes new sub-directories as well. DIR2 has older version of files.
I want to compare these 2 directories, such that if any of the subdirectory of DIR1 has any file which is new/different than the respective subdirectory of DIR2, it should copy entire respective subdirectory to DIR3.
Hence DIR3 should have all the subdirectories which have been identified with the change.