> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/f/ftp.md).

# FTP

```ruby
require('Net::FTP')
 
var ftp = %O<Net::FTP>.new('ftp.ed.ac.uk', Passive => 1)
ftp.login('anonymous','email@example.com')
ftp.cwd('pub/courses')
[ftp.dir].each {|line| say line }
ftp.binary;   # set binary mode
ftp.get("make.notes.tar")
ftp.quit
```
