Page 1 of 1

custom matching - move 1 folder contents to another folder

PostPosted: Mon Dec 28, 2020 8:42 pm
by NoodleNewbie
Hi, I am trying to add a new custom matching rule.

Folder 1: Contains 1 file to move
Folder 2: Folder to receive the file
Both Folder 1 and Folder 2 are in the same parent folder

In a directory there are many folders, and 2 of the folders I would like to work with (Folder1, Folder2). These 2 folders have identical beginning of the folder name e.g. first 6 characters. The remaining of the name is different.

I wish to move 1 file from folder1 into folder 2. Folder1 only ever has 1 file.

This is what I have so far:

IF: ALL
Kind is Folder
Name matches -a1a1a1a1a1a1- (using attribute function to create a variable I think)

DO: the following with the matched folder
Run Rules on Folder Contents
Sort into subfolder with pattern name... (... means anything) [trying to match the other folder on name like 'variable created above'

(screenshot attached of the rule)

It is sorta working.
ABOVE results in moving Folder1 AND the enclosed file to Folder2
Rather I wanted, to move the enclosed file from Folder1 to Folder2.

Image

Thankyou for any assistance and your time and effort.
regards,

Re: custom matching - move 1 folder contents to another fold

PostPosted: Tue Dec 29, 2020 11:26 am
by Mr_Noodle
Read the manual on subfolders. You do not want to combine folder logic with file logic in this case. You need to split it up into separate rules. The chapter in the manual has more details.

Re: custom matching - move 1 folder contents to another fold

PostPosted: Tue Jan 05, 2021 8:08 pm
by NoodleNewbie
Thankyou. All done now.

Simplified the rule.

Rule 1:
Purpose to move the file into my "working folder"= FOLDER1
removed any sorting into sub-folders.

Rule 2: (on Working Folder, FOLDER1)
IF: ALL
Name matches Ba1a1a1a1a1a1...
Extension is xxx

DO: the following with the matched folder
Sort into subfolder with pattern -name ...

(... means anything)