Reputation: 4319
I can make a connection to an ftp server using NET::FTP, but it doesn't appear that I can use net::ftp.getbinaryfile() or even get something like the pwd(), list(), etc. Does heroku support this functionality?
Upvotes: 1
Views: 1256
Reputation: 4319
Yes. Heroku does support NET::FTP and transferring files in binary mode. However, I found out that it only support passive mode see this question.
Upvotes: 3
Reputation: 1033
Heroku would compile your code into slug, which is a read-only package ready for running in dynos, see: Slug Compiler
Your application is running in a very restricted environment, where most file operations are banned.
Upvotes: 0