hi,
I am using n8n Desktop on Windows OS.
Connect the shared folder on the NAS as a network drive (Z:) and
Whenever a file is added to the shared folder, the file is copied to a specific folder on the D drive using the local file trigger node of n8n.
xcopy /F /R /Y /I “{{$json[“path”]}}” “D:/InputFiles/InternalDigitalCard/{{DateTime.now().toFormat(‘yyyyMMdd’)}}/”
Copy the file using the above expression.
However, most files are 1kb in size.
So the PDF file won’t open in Acrobat Reader.
Occasionally, a normally copied file exists.
Could this be because an event occurred while a file was being written to the shared folder?
thank you