Lets say I have two folders as shown below.
folderA [1100 bytes] folderB [1000 bytes]
|- file1.txt [100 bytes] |- file5.txt [200 bytes]
|- file2.txt [200 bytes] |- file2.txt [300 bytes]
|- file3.txt [800 bytes] |- file7.txt [500 bytes]
This is what I would like to happen. When I compare folderA to folderB, I want BC to figure out only that the two folders are different (either based on folder size, or folder timestamp) and copy folderA to a different location.
Here is the script that I am using:
It seems like BC is not diffing at the folder level. It wants to compare the files. How can I tell BC to only compare folders, and if there is a difference do something. I don't care about what files are in the folders.
Thanks.
folderA [1100 bytes] folderB [1000 bytes]
|- file1.txt [100 bytes] |- file5.txt [200 bytes]
|- file2.txt [200 bytes] |- file2.txt [300 bytes]
|- file3.txt [800 bytes] |- file7.txt [500 bytes]
This is what I would like to happen. When I compare folderA to folderB, I want BC to figure out only that the two folders are different (either based on folder size, or folder timestamp) and copy folderA to a different location.
Here is the script that I am using:
Code:
option confirm:yes-to-all criteria rules-based load folderA folderB expand all select left.diff.folders copyto left path:base %1
Thanks.
Comment