-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancing the FTP protocol #40
Conversation
… Modified --ls Modified nxc/protocols/ftp.py and added --get and --put functionality. Modified --ls functionality
…g to upload it to a ftp server using --put
RFC 1635 Compliance
--ls--get--put |
Couple things to mind about this merge, it currently doesn't allow the following: --put
The user will need to specify the filename or dir + filename to save to If this current implementation is not prefered, let me know and I can make some adjustments to allow users to upload using either |
@RomanRII can you add these new flags to the e2e tests commands file under the FTP section (tests/e2e_commands.txt)? |
@Marshall-Hallenbeck you got it. will get that done |
|
[nanodump] fix error with temporary path
Revert "[nanodump] fix error with temporary path"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good PR! Clean code and very nice documentation of the changes! Love to see that
Signed-off-by: Roman Rivas II <74742067+RomanRII@users.noreply.github.com>
Signed-off-by: Roman Rivas II <74742067+RomanRII@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and tested this. It all works. Great code and feature, thank you!
What was done
nxc/protocols/ftp.py
--ls
flag to allow for listing the current directory and sub-directories. Default now lists.
. If an argument is provided, it will list the provided sub-directory--get
flag to download a file on the server. If the file exists and is successfully downloaded, it will be written to the users cwd with the remote file's filename.--put
flag to upload files onto the server.nxc/protocols/ftp/proto_args.py
to reflect the added features--ls
flag to allow for a default directory listing (.
) or use a provided directory--get
and--put
flagsTest environment used