how to copy updated files to new folder and create directory as source if not exist?
问题 I was trying to compare files in 2 folders and copy those new and updated files to a diff folder, for example: newFolder has a\aa.txt (new folder and new file) b\aa.txt b\ab.exe (modified) b\ac.config (new file) aa.txt (modified) ab.exe (new file) ac.config oldFolder has b\aa.txt b\ab.exe aa.txt ac.config In this case, what I expect in diff folder should be: diffFolder a\aa.txt b\ab.exe b\ac.config aa.txt ab.exe So far I have been searching on google and trying different approaches, but still