Page 1 of 1

Accept file if name exists anywhere

Posted: Fri Jan 06, 2023 8:22 pm
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.

Re: Accept file if name exists anywhere

Posted: Sat Jan 07, 2023 12:52 pm
by authorleon
Hi, anyone?

Thanks

Re: Accept file if name exists anywhere

Posted: Sat Jan 07, 2023 2:12 pm
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.

Re: Accept file if name exists anywhere

Posted: Sat Jan 07, 2023 2:31 pm
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