Using the ftp list command

Introduction

This is how to perform an ftp list command using net.ftp.list from the net module.

Task [top]

Using the ftp list command

Implementation [top]

This example uses the publicly available NASA ITCD ftp server.

Here is the code for you to copy:

function main() 
   local id=net.ftp.init{
      server='ftp.hq.nasa.gov', 
      username='anonymous', password='<your email address>'}
   id:list{remote_path='/'}
   id:list{remote_path='/pub'}
en

More information [top]

Leave A Comment?