Skip to content

chousensha/ftpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

# Simple Python FTP client using the ftplib module

Usage: ./ftp.py server_name [username] [password]

Username and password are optional in case the server requires authentication

Supported commands:
CWD
RETR
STOR
DELE
PWD
LIST
QUIT


DEMO

./ftp.py ftp.debian.org
220 ftp.debian.org FTP server
Listing files and folders...
drwxr-xr-x    8 1176     1176         4096 Feb 20 15:44 debian
226 Directory send OK.
ftp> CWD debian
-rw-rw-r--    1 1176     1176         1066 Feb 15 09:23 README
-rw-rw-r--    1 1176     1176         1290 Jun 26  2010 README.CD-manufacture
-rw-rw-r--    1 1176     1176         2598 Feb 15 09:23 README.html
-rw-r--r--    1 1176     1176       175825 Feb 09 01:52 README.mirrors.html
-rw-r--r--    1 1176     1176        87462 Feb 09 01:52 README.mirrors.txt
drwxr-sr-x   15 1176     1176         4096 Feb 15 09:22 dists
drwxr-sr-x    4 1176     1176         4096 Feb 20 13:52 doc
drwxr-sr-x    3 1176     1176         4096 Aug 23 06:02 indices
-rw-r--r--    1 1176     1176      8857647 Feb 20 15:21 ls-lR.gz
drwxr-sr-x    5 1176     1176         4096 Dec 19  2000 pool
drwxr-sr-x    4 1176     1176         4096 Nov 17  2008 project
drwxr-xr-x    3 1176     1176         4096 Oct 10  2012 tools
226 Directory send OK.
ftp> RETR README
226 Transfer complete.
ftp> QUIT
221 Goodbye.

About

Simple FTP client written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages