I have a workflow that searches for files on the Gdrive folder and downloads them to a local NAS.
The workflow is supposed to work in this way:
At a certain time of the day start the workflow
Get today’s date, format it as Month_day_year
SSH into the NAS and create a directory called Month_day_year
Access Gdrive at a specific folder and download all the files
FTP into the NAS and upload the files inside the newly create folder Month_day_yyyy
The issue is that the workflow works but the FTP node does not see the new directory, so it falls back into the main directory, which requires me to manually separate the files based on the day they were copied.
Most likely you need to change your expression a little.
As you are refering to a node outside the loop things can get messy.
I personally never use the reference to $(‘node’).item.json.
In this case you can probably fix it by swapping .item for .first(0,0)
so that would be something like this, with of course the correct node name and the selection for the correct field after json.
Thanks, BramKn, i change dit this way /FTP_Backups/Billing/{{$('SSH').first(0,0).json.stdout}}/{{$('Download all files 1-by-1').item.json.name}} but it is still not working (folder skipped)
Any other way I can solve this issue? It seems such a simple workflow but it’s causing me quite a bit of headaches (i am a newbie with n8n)