Accept file if name exists anywhere

Questions and answers on how to get the most out of FFAStrans
Post Reply
authorleon
Posts: 108
Joined: Fri May 08, 2020 5:18 pm

Accept file if name exists anywhere

Post by authorleon »

Hello,

It is possible to accept a file name based on part of its name?

i have this at the moment:

Code: Select all

test*.mp4

- test123.mp4 - accepted
- test 123.mp4 - accepted
- 123test123.mp4 - accepted
- 123 test123.mp4 - accepted
- 123 test 123.mp4 - accepted

- tst123.mp4 - NOT accepted
- tes123.mp4 - NOT accepted

Thanks



Accept/Deny files

Here you can define what kind of files that will be accepted or denied. Supports wild card (*) and question mark(?) for single character. Multiple file names can be separated by pipe (|). Both "Accept" and "Deny" fields can be defined. Supports variables.

(Accept) Example: «*.mov|boat*.mxf» will seek for any kind of .mov file and any kind of .mxf file starting with «boat»

(Deny) Example: «Thumb.db|*.wav» will skip any .wav files and «Thumb.db» files generated by Windows.
authorleon
Posts: 108
Joined: Fri May 08, 2020 5:18 pm

Re: Accept file if name exists anywhere

Post by authorleon »

Hi, anyone?

Thanks
momocampo
Posts: 594
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Accept file if name exists anywhere

Post by momocampo »

Hi AUthorleon,

Don't be so hurry, it's the week-end :)

Anyway, if you specify that :

Code: Select all

test*.mp4
it will be the same as

Code: Select all

test*
or that

Code: Select all

test*.mov
When you use * , it means EVERYTHING after your string will be accepted, extension included.
If you want only mp4 files and if you don't have too many others files extensions, the simpler way is using the "deny files" box and specify the others extensions possible not accepted.
If you have too many others extensions, you have to create a conditional node to check if your files are mp4 or not. So if yes, the workflow will go on and if no, stop or anything else :)

Hope it helps.

Cheers.
authorleon
Posts: 108
Joined: Fri May 08, 2020 5:18 pm

Re: Accept file if name exists anywhere

Post by authorleon »

momocampo wrote: Sat Jan 07, 2023 2:12 pm Hi AUthorleon,

Don't be so hurry, it's the week-end :)

Anyway, if you specify that :

Code: Select all

test*.mp4
it will be the same as

Code: Select all

test*
or that

Code: Select all

test*.mov
When you use * , it means EVERYTHING after your string will be accepted, extension included.
If you want only mp4 files and if you don't have too many others files extensions, the simpler way is using the "deny files" box and specify the others extensions possible not accepted.
If you have too many others extensions, you have to create a conditional node to check if your files are mp4 or not. So if yes, the workflow will go on and if no, stop or anything else :)

Hope it helps.

Cheers.
Weekend, what is that? LOL

Thank you
Post Reply