in reply to Re: compare two folders and copy folder/file if not found on target else log that file or folder
in thread compare two folders and copy folder/file if not found on target else log that file or folder

Basically i am comparing two folder (source folder and target folder).

In the target folder the source folder files/subfolders are not found then copy them. Else if it is found then don't copy that file instead log them stating that respective file already exists.

  • Comment on Re^2: compare two folders and copy folder/file if not found on target else log that file or folder

Replies are listed 'Best First'.
Re^3: compare two folders and copy folder/file if not found on target else log that file or folder
by ww (Archbishop) on Feb 20, 2014 at 22:13 UTC
    OK, that's what I suspected and others discerned to be your meaning. Now let me give you a 'simple english' version that's wordy but utterly unambiguous:
    "I'm comparing two folders. If a file or subfolder is NOT found in the second but is present in the first, copy the missing item from the first to the second; otherwise... simply log that a file or dir was found in BOTH folders."

    Note that this expression does NOT concern itself with items found in the second folder, but not the first. That's a different requirement and requires a different problem statement.

    As with programming, communicating anything even mildly complex depends heavily on clarity and precision.

    Come, let us reason together: Spirit of the Monastery

    Quis custodiet ipsos custodes. Juvenal, Satires