Tuesday, 1 October 2019

Cron a task that Download files and showes progress using FTP

Hey guys,i have a task in which to download files from server to another using FTP "With sending the state the file progress to an event"in which A front-end at the end shows files being downloading with pregress state of file,now am using this package of node :https://github.com/mscdex/node-ftpconnection to ftp,download the file gust like node-ftp documentationwith the usage of progress-stream to stream progress,as when i download the file i pipe the streamso evenutally it looks like thisstream.pipe(str).pipe(dest) where the stream is the fileand str is progress-stream with alot of setup so i can emit to event which the front end will listen and also generate anaysis from the packet of datathe Problem is i want to set this in infinite loop which runs every 5minuteswhen i use set interval or node-cron it doesnt workwhat i am missing ?please help?

Submitted October 01, 2019 at 04:55PM by cw4i

No comments:

Post a Comment