Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Support file paths with spaces for RETR command #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martijnversluis
Copy link

Because the FTP command is splitted by spaces, file paths with spaces
are not supported, because the Retr command only uses the first part of
the path until the first space. This change ensures all parts are used.

This change fixed a specific problem for me, but I did not test other commands. However, looking at some FTP documentation, it seems that commands that accept more than one parameter are an exception, so I could imagine a command should just receive of string of all characters except the command name itself. That would solve the problem for all commands IMO.

Because the FTP command is splitted by spaces, file paths with spaces
are not supported, because the Retr command only uses the first part of
the path until the first space. This change ensures all parts are used.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant