Page 2 of 2

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

Posted: Wed Apr 28, 2021 6:18 pm
by stuvmark
Great! Thanks, this worked perfect!

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

Posted: Wed Oct 09, 2024 2:03 pm
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.

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

Posted: Wed Oct 09, 2024 2:36 pm
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.

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

Posted: Thu Oct 10, 2024 6:05 pm
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.