Use file system through Node.js accessing file with r+w

Please excuse me if it's a duplicated question. I have a Node.js that needs to save and retrieve files that apigee downloads from sftp server. Is there a default path/folder that I can have access to? My scp program says the file is downloaded. But I'm not sure where I can retrieve the file.

Thanks in advance!

0 2 481
2 REPLIES 2

Not applicable

Hi @Mark Lee, You may want to check this thread

https://community.apigee.com/questions/5648/unable-to-set-location-for-jar-files-in-nodejs-app.html

It has detailed information on whats possible.

@Maruti Chand Thanks for your reply. What I'm trying to do is download a txt file from remote server and save it in apigee current directory and retrieve the file and Apigee needs to send it to another server in a different format. Local implementation has no issue since node.js can use filesystem.. but when I port it to apigee, it seems like I don't have access to the current directory. Any suggestions?