I have mapped an SMB share and there files end up in an inbox, these should be moved after processing. There is a node for Dropbox and Co. How can I implement this in the SMB share?
At the moment I am not reading the file name completely. But just run through all * .csv files. How do I get the file name of the file?
How can I move all files into an error folder that do not conform to the * .csv convention?
The name of the file is in the property āfileNameā in the binary data:
There is currently no node to move files on the file system. You would have to do it with the āExecute Commandā node instead and use the mv command.
Sounds like n8n does not have the access rights to write to the /media folder. If you change that it should work. The mv complains because it is not complete. You have to define a source and a destionation.
No that was the problem! I have mounted the drive on the host machine and have mapped the folder in which I have mounted with the Docker container !
mount on the host system: sudo mount -t cifs -o username=<username>,password=<pass>,dir_mode=0777,file_mode=0777,nounix //192.168.0.2/Path1/ /media/Path1
docker-compose.yml
node:
volumes:
- /media/Path1:/Path1
Do not forget:
docker-compose up -d
Now the access (/Path1/ā¦) from n8n works with the cmd node!