Re: FetchSFTP: Rename file on move

2020-08-11 Thread Jairo Henao
Thanks for the suggestions.

The combination of UpdateAttribute (Setting the new filename) with PutSFTP
works fine!




On Tue, Aug 11, 2020 at 5:59 PM Andy LoPresto  wrote:

> You can also use an UpdateAttribute processor to change the “filename”
> attribute, which is what any “file persistence” processor (PutSFTP,
> PutFile, etc.) will use when writing the file out.
>
>
> Andy LoPresto
> alopre...@apache.org
> *alopresto.apa...@gmail.com *
> He/Him
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Aug 11, 2020, at 3:47 PM, Joe Witt  wrote:
>
> Jairo
>
> You can use a PutSFTP after Fetch to place it where you want.
>
> Thanks
>
> On Tue, Aug 11, 2020 at 3:16 PM Jairo Henao 
> wrote:
>
>> Hi community,
>>
>> Is there a way to rename a file before moving it with FetchSFTP?
>>
>> After processing a file, I need to move it to a folder and add a
>> timestamp suffix to it. The file in the source always has the same name,  but
>> I need that when moving it they are not overwritten.
>>
>> Any ideas or is it necessary to request a modification to the processor?
>>
>> Thanks
>>
>> --
>> Jairo Henao
>> @jairohenaorojas
>>
>>
>

-- 
Jairo Henao
@jairohenaorojas


Re: FetchSFTP: Rename file on move

2020-08-11 Thread Andy LoPresto
You can also use an UpdateAttribute processor to change the “filename” 
attribute, which is what any “file persistence” processor (PutSFTP, PutFile, 
etc.) will use when writing the file out. 


Andy LoPresto
alopre...@apache.org
alopresto.apa...@gmail.com
He/Him
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Aug 11, 2020, at 3:47 PM, Joe Witt  wrote:
> 
> Jairo
> 
> You can use a PutSFTP after Fetch to place it where you want.
> 
> Thanks
> 
> On Tue, Aug 11, 2020 at 3:16 PM Jairo Henao  > wrote:
> Hi community,
> 
> Is there a way to rename a file before moving it with FetchSFTP?
> 
> After processing a file, I need to move it to a folder and add a timestamp 
> suffix to it. The file in the source always has the same name,  but I need 
> that when moving it they are not overwritten. 
> 
> Any ideas or is it necessary to request a modification to the processor?
> 
> Thanks
> 
> -- 
> Jairo Henao
> @jairohenaorojas
> 



Re: FetchSFTP: Rename file on move

2020-08-11 Thread Joe Witt
Jairo

You can use a PutSFTP after Fetch to place it where you want.

Thanks

On Tue, Aug 11, 2020 at 3:16 PM Jairo Henao 
wrote:

> Hi community,
>
> Is there a way to rename a file before moving it with FetchSFTP?
>
> After processing a file, I need to move it to a folder and add a timestamp
> suffix to it. The file in the source always has the same name,  but I
> need that when moving it they are not overwritten.
>
> Any ideas or is it necessary to request a modification to the processor?
>
> Thanks
>
> --
> Jairo Henao
> @jairohenaorojas
>
>