BenMatteson / CS410_Agile_Group2

CS410 Agile Practice Project - FTP Client
0 stars 2 forks source link

Command parsing splits substring spaces #52

Open eddiekelleypdx opened 5 years ago

eddiekelleypdx commented 5 years ago

When FTP_main.py parses SFTP commands using split, it is splitting substrings (e.g., mkdir "file name" is interpreted as mkdir file name), which causes some valid commands to produce errors.

It appears that this can be resolved fairly easily by using split() from the shlex module (https://docs.python.org/3/library/shlex.html)

BenMatteson commented 5 years ago

eww, who uses spaces in the filenames!?