├── .idea │ ├── FTP_master.iml │ ├── inspectionProfiles │ ├── misc.xml │ ├── modules.xml │ └── workspace.xml ├── FTPClient │ ├── init.py │ └── ftp_client.py ├── FTPServer │ ├── init.py │ ├── bin │ │ ├── init.py │ │ └── ftp_server.py │ ├── conf │ │ ├── init.py │ │ ├── pycache │ │ │ ├── init.cpython-36.pyc │ │ │ └── settings.cpython-36.pyc │ │ ├── accounts.cfg │ │ ├── da.py │ │ └── settings.py │ ├── core │ │ ├── init.py │ │ ├── pycache │ │ │ ├── init.cpython-36.pyc │ │ │ ├── ftp_server.cpython-36.pyc │ │ │ └── main.cpython-36.pyc │ │ ├── ftp_server.py │ │ └── main.py │ └── home │ └── init.py ├── README.md └── init.py
For Server, in terminal:
$ cd ~/FTP_master/FTPServer/bin/
$ python ftp_server.py start
For Client, in terminal:
$ cd ~/FTP_master/FTPClient
$ python ftp_client.py -s 127.0.0.1 -P25100 -uLightwing -pabc123
Remarks:
defaul account and passwords: Lightwing, abc123
[Lightwing]$:help ['help']
get filename # get file from FTP server
put filename # upload file to FTP server
ls # list files in current dir on FTP server
pwd # check current path on server
cd path # change directory , same usage as linux cd command
touch # touch file
rm # rm file rm director
mkdir # mkdir direcotr