Page 1 of 1

Collect all of specific filetype into one location

PostPosted: Mon Feb 21, 2022 1:27 pm
by MeLlamanHokage
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

Re: Collect all of specific filetype into one location

PostPosted: Tue Feb 22, 2022 9:39 am
by Mr_Noodle
Are you using those rules exactly as-is or did you modify them? If you modified them, can you post the current versions?

Re: Collect all of specific filetype into one location

PostPosted: Tue Feb 22, 2022 11:32 am
by MeLlamanHokage
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

Re: Collect all of specific filetype into one location

PostPosted: Wed Feb 23, 2022 9:17 am
by Mr_Noodle
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.

Re: Collect all of specific filetype into one location

PostPosted: Wed Feb 23, 2022 12:14 pm
by MeLlamanHokage
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

Re: Collect all of specific filetype into one location

PostPosted: Thu Feb 24, 2022 9:27 am
by Mr_Noodle
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.

Re: Collect all of specific filetype into one location

PostPosted: Thu Feb 24, 2022 4:59 pm
by MeLlamanHokage
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

Re: Collect all of specific filetype into one location

PostPosted: Fri Feb 25, 2022 10:22 am
by Mr_Noodle
Should work then. Try looking at the rule status interface to see if everything is matching the rules you expect.

Re: Collect all of specific filetype into one location

PostPosted: Sat Feb 26, 2022 8:10 am
by nicfab
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.