Read-only files after FTP download

Questions and answers on how to get the most out of FFAStrans
Post Reply
deburen
Posts: 2
Joined: Thu Oct 26, 2023 1:02 pm

Read-only files after FTP download

Post by deburen »

Hi,

when we use the FTP Monitor processor, all the downloaded files become read-only.
I can't seem to find a way to disable this. Does anyone know a solution for this?

Many thanks
A FFAStrans newbie ;)
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Read-only files after FTP download

Post by emcodem »

Hi deburen,

welcome to the forum and thank you for using FFAStrans :D
Thats really strange, it is not something that ffastrans does itself i assume.
Can you share your workflow? Is it like you just deliver the file using the deliver processor and the final target file is readonly?´

You might possibly get away with a commandline processor removing the readonly flag after delivery and do like:

Code: Select all

cmd /C "attrib -r "%s_source%""
emcodem, wrapping since 2009 you got the rhyme?
admin
Site Admin
Posts: 1659
Joined: Sat Feb 08, 2014 10:39 pm

Re: Read-only files after FTP download

Post by admin »

Hi deburen,

It's not explicityly set by FFAStrans but it's probably the windows api function doing it. For the next release we can add a step in the FTP monitor where attributes is reset after downloading. Meanwhile try @emcodems suggestion.

Thanks for reporting! :-)

-steinar
deburen
Posts: 2
Joined: Thu Oct 26, 2023 1:02 pm

Re: Read-only files after FTP download

Post by deburen »

emcodem wrote: Thu Oct 26, 2023 3:54 pm Hi deburen,

welcome to the forum and thank you for using FFAStrans :D
Thats really strange, it is not something that ffastrans does itself i assume.
Can you share your workflow? Is it like you just deliver the file using the deliver processor and the final target file is readonly?´

You might possibly get away with a commandline processor removing the readonly flag after delivery and do like:

Code: Select all

cmd /C "attrib -r "%s_source%""
Hi emcodem,

thanks. That's the solution I needed :). I already tried the attrib command but forgot the correct quotation marks.
Workflow is like you described. Just a delivery processor right after the FTP Monitor
emcodem
Posts: 1646
Joined: Wed Sep 19, 2018 8:11 am

Re: Read-only files after FTP download

Post by emcodem »

Super, thanks for letting us know that it works for you!
emcodem, wrapping since 2009 you got the rhyme?
Post Reply