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?
Asked
Active
Viewed 1,231 times
2 Answers
3
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.

Community
- 1
- 1

spyderman4g63
- 4,087
- 4
- 22
- 31
0
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.

inntran
- 993
- 7
- 8
-
How do people achieve things like importing data from a csv? – spyderman4g63 Sep 12 '12 at 19:06
-
Thanks for you comment. Maybe I wasn't clear that I am using the cedar stack. This stack has a writeable file system, but the file are only available to the process that created them while that process is running. – spyderman4g63 Sep 12 '12 at 19:20
-
Also, I'm not sure how limited the file system access is. I was able to gunzip the file I downloaded. – spyderman4g63 Sep 12 '12 at 19:24