Page 1 of 1

Folder Monitor / Search for String in subfolders

Posted: Thu Nov 10, 2016 4:26 pm
by estenmar
Hey all, wondering if there is a way of having a folder monitor potentially with variables that searches all sub folders for files with a particular string of characters. This would be a means of setting up multiple monitors that could potentially auto transcode and rename files in their current locations without having to input to a watch folder or moving the finished exports.

For Example:

- Export from Premiere/Other to that project's Exports folder (filename : #ProRes_This Project is Awesome_2016-11-09.avi)

- Folder Monitor node picks up on the "#ProRes" file name and auto transcodes the file to the same location and the workflow renames output file with removing the "#ProRes_" and upon completion deletes the original file.

In this way, it would be possible to set up multiple workflows that watch for different name tags system wide.
I.E.
- #MP4-1080 - MP4 @ 1080
- #H264-480TC - 480p H264 with BITC

Anyway, was a random thought I had on possibly removing a bit of direct file management.

Re: Folder Monitor / Search for String in subfolders

Posted: Thu Nov 10, 2016 7:46 pm
by estenmar
So I realized that I had a setting wrong within the "Folder" node in my attempts to achieve this. Managed to get it working, aside from the final "Rename" step at the end. In order to keep the workflow from continuously re-encoding the resultant file I need to remove the "#ProRes" string from the file name.

I know this should be under feature request and I'll do so, but it would be nice if there were a full "Rename" node within which there would be options for doing a "Find and Replace", add date, make sequential, etc. I'm trying to figure out how to do this within the "Command Executor" but struggling to do so.

-Eric

Re: Folder Monitor / Search for String in subfolders

Posted: Fri Nov 11, 2016 12:40 pm
by admin
Hi Eric,

The next release (0.8.0) will feature a lot of string manipulation functions that lets you do the stuff you want. F.eks. it will let you strip a string like "#MP4-1080 - " from a file name or simply strip the first 12 characters. The new names can be stored in user variables and used in subsequent nodes.

-steinar

Re: Folder Monitor / Search for String in subfolders

Posted: Fri Nov 11, 2016 2:37 pm
by estenmar
That's great to hear Steinar, thanks for the heads up. I'll be looking forward to the 0.8.0 release!

- Eric