Open eddiekelleypdx opened 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.
split
mkdir "file name"
mkdir file name
It appears that this can be resolved fairly easily by using split() from the shlex module (https://docs.python.org/3/library/shlex.html)
split()
shlex
eww, who uses spaces in the filenames!?
When FTP_main.py parses SFTP commands using
split
, it is splitting substrings (e.g.,mkdir "file name"
is interpreted asmkdir file name
), which causes some valid commands to produce errors.It appears that this can be resolved fairly easily by using
split()
from theshlex
module (https://docs.python.org/3/library/shlex.html)