Collect all of specific filetype into one location

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

Moderator: Mr_Noodle

I found this workflow for sorting particular files with an extension into a folder:
viewtopic.php?f=3&t=13168

It almost does what I want.

This workflow will search a folder in this manner:

[X] (matched folder)
[A]
--001.ai
[B]
--foo.mov
[C]
--bar.js
[1]
--002.mp4


And move all containing folders at any level hierarchy in the hierarchy into the destination folder like this:

[Y] (destination folder)
[A]
--001.ai
[B]
--foo.mov
[C]
--bar.js
[1]
--002.mp4

This moves all folders associated when it finds a file that matches the condition.
What can I tweak so it instead leaves everything in place and only moves the targeted filetype?

[Z] (destination folder)
--002.mp4


[] = folder
-- = file

Thank you
MeLlamanHokage
 
Posts: 7
Joined: Fri Nov 27, 2020 7:47 am

Are you using those rules exactly as-is or did you modify them? If you modified them, can you post the current versions?
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Are you using those rules exactly as-is or did you modify them? If you modified them, can you post the current versions?


Here are the two rules (disabled for now)
Forgive me if the images don't turn out
I'm more familiar with markdown

Image
Image

Thank you
MeLlamanHokage
 
Posts: 7
Joined: Fri Nov 27, 2020 7:47 am

Your "Collect .ai" rule is set to match folders containing .ai files, not the .ai files themselves. If that is not the intent, do not use the nested condition with "any of its subfiles or subfolders". You might also want to get rid of the Subfolder Depth condition as well since the .ai files will be deeper in the hierarchy.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Your "Collect .ai" rule is set to match folders containing .ai files, not the .ai files themselves. If that is not the intent, do not use the nested condition with "any of its subfiles or subfolders". You might also want to get rid of the Subfolder Depth condition as well since the .ai files will be deeper in the hierarchy.



Thank you for the response!

Yes

I want only the files to be moved

Is this correct?
Image
MeLlamanHokage
 
Posts: 7
Joined: Fri Nov 27, 2020 7:47 am

I'd need to see the Subfolder search rule as well, but what you have for that rule is mostly correct. The "Run rules on folder contents" doesn't make sense there though.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:I'd need to see the Subfolder search rule as well, but what you have for that rule is mostly correct. The "Run rules on folder contents" doesn't make sense there though.


The subfolder search rule is the same as the one linked previously

Image


Am I warmer?
Image
MeLlamanHokage
 
Posts: 7
Joined: Fri Nov 27, 2020 7:47 am

Should work then. Try looking at the rule status interface to see if everything is matching the rules you expect.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Should work then. Try looking at the rule status interface to see if everything is matching the rules you expect.

Hi!

I set up the rules you mentioned (in my case only copy), but apart from copying files into a specific folder, I would also like to keep them organized by copying also the original folder.
I mean that the rule should search into my hard disk for files with a specific extension - for example, PDF - and copy them into a folder - for example, named "PDF files" - but copying also only the original folder.
For example, I have a PDF file into a folder named "documents"; the rule should copy into the destination folder (for example, "PDF_new") not only the found PDF files but also the original folder "documents" and into it the PDF files.
The result I would like to achieve is like the following:

documents (original folder)
|_ filename.PDF

PDF_new (destination folder)
|_ documents (only copied original folder and into it copied)
|_ filename.PDF

Is it possible?
Thank you in advance.
nicfab
 
Posts: 1
Joined: Sat Feb 26, 2022 7:51 am


Return to Support