Create .md5-file after a file is delivered?

Questions and answers on how to get the most out of FFAStrans
stuvmark
Posts: 10
Joined: Fri Apr 16, 2021 10:47 am

Re: Create .md5-file after a file is delivered?

Post by stuvmark »

Great! Thanks, this worked perfect!
Serv
Posts: 2
Joined: Wed Oct 09, 2024 1:51 pm

Re: Create .md5-file after a file is delivered?

Post by Serv »

Hi emcodem,

I read the current subject and I was happy to be able to use your workflows to create an MD5 result for one file. Thanks for that :-)
I'm wondering if it is possible to write more than one result in the final txt file when you have more than one file in the watchfolder.
I tried to process two files, but only the 'last MD5 result' (read the last processed) is displayed in the txt file.

Regards,
Serv.
emcodem
Posts: 1743
Joined: Wed Sep 19, 2018 8:11 am

Re: Create .md5-file after a file is delivered?

Post by emcodem »

Hi @Serv

thanks for using FFAStrans and welcome to the community!

You can use the "Append" checkbox in the write text file processor to append to the same text file from different jobs. In that case, make sure that the text you enter ends with a new line, otherwise everything is printed into one line.

If you use this as a "report" functionality, you can use Year and month as filename for example,
E.g. in the text file processor, content is:

Code: Select all

%s_md5%  %s_original_name%.%s_original_ext%

(WITH a newline at the end)

and file can be:
%i_yr%_%i_mon%_report.txt

folder can be:
%s_original_path%

Again, chekbox at bottom "append to text file" is checked.

Also, you might want to know that MD5 is very old and slow. You could also use the more modern XXhash algorithm, there is a ffastrans function to generate it.
emcodem, wrapping since 2009 you got the rhyme?
Serv
Posts: 2
Joined: Wed Oct 09, 2024 1:51 pm

Re: Create .md5-file after a file is delivered?

Post by Serv »

Hi emcodem,

Thanks for the append checkbox tip, easy but I didn't see it, it is working well with the checkbox checked.
Thanks also for your advice concerning MD5 too old, unfortunately the 3rd party where I deliver files is using only MD5, so i must use MD5 my side too ;-)
I also have a question concerning space in folders who are recognized in the watchfolder or destination folder as waiting an argument and stops process, but I'll create a new subject to avoid polluting the present subject ;-)

Regards,
Serv.
Post Reply