Bug relating to monitored folder and using "copy" twice.

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Let's say you have a folder/file structure as follows:

    Folder 1
      Folder 2
        Folder3
        File 3
          Folder 4
            Folder 5
            File 5

You also have two Backup folders:
    Backup 1
    Backup 2

Now you set up Folder 1 as the monitored folder by writing riles for it.
Your write the following rules:

"Rule 1: Go into sub-folders"
    If all of the following conditions are met
      Kind is Folder
        Do the following to the matched file or folder:
          Run rules on folder contents

Rule 2: Copy files to Backup 1 and Backup 2

    If all of the following conditions are met
      Any File
        Do the following to the matched file or folder:
          Copy to folder: Backup 1 - Options: Copy folder structure from monitored folder
            Copy to folder: Backup 2 - Options: Copy folder structure from monitored folder

The result of the two copy commands should give the same folder hierarchy in the Backup folders.

Unfortunately it seems that the first copy commend CHANGES THE MONITORED FOLDER from File 1 to nothing, or just simply ignores the option to Copy folder structure from monitored folder.

The result of running the rule is thus:

    Backup 1
      Folder 2
        Folder 3
        File 3
          Folder 4
            Folder 5
            File 5

    Backup 2
    File 3
    File 5

Also to note: if the option selected is "copy folder structure from root" then the folder structure is indeed copied, except that the root becomes the destination drive, and not the source drive. In other words, the root is different depending on the order of the rules. To test it, make sure the Backup folders are on a different drive from the source and run the rules firstly this way:

Copy to folder: Backup 1 - Options: Copy folder structure from monitored folder
Copy to folder: Backup 2 - Options: Copy folder structure from root

Then run the rules this way:
Copy to folder: Backup 2 - Options: Copy folder structure from root
Copy to folder: Backup 1 - Options: Copy folder structure from monitored folder

The result should be the same - but it is not!
Trickyt57
 
Posts: 55
Joined: Tue Sep 18, 2018 12:17 am

Actions after a copy action apply to the copy, not the original. In your case, you should probably use two rules with the first one using the "Continue" action so that the second one gets a chance to match/run.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks Mr Noodle. By breaking the rule down into two rules I was able to keep the the monitored folder the same. The app performs as expected with two "copy" rules.
Trickyt57
 
Posts: 55
Joined: Tue Sep 18, 2018 12:17 am


Return to Support