For compilation use the following command in ftpclient/ and ftpserver/ directories
make
- Note: Ensure you have g++ on your computer
./ftpserver.out config.json
./ftpclient.out
Template | Example | Description |
---|---|---|
user "username" | user Ali | enter username for authentication |
pass "password" | pass 1234 | enter password for authentication |
pwd | pwd | get current directory path |
mkd "directory" | mkd temp | create new directory with provided name |
dele -f "filename" | dele -f tempf | delete file with provided name |
dele -d "dirpath" | dele -d tempd | delete directory with provided name |
ls | ls | get files and directories in pwd |
cwd "new path" | cwd new_path | change path to new_path |
rename "from" "to" | rename old new | rename file from old name to new name |
retr "filename" | retr config.json | download file |
help | help | get help message for commands |
quit | quit | logout from account |