Skip to content

ftplib CLI fails to retrieve files #114241

@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

The ftplib module has undocumented feature -- a CLI that implements a simple FTP client. It allows listing directories and retrieving files. But retrieving files does not work in Python 3, because it writes binary data to sys.stdout.

It's help is also incomplete and unclear.

Documenting, testing and extending this CLI to a more complete FTP client is a matter of other issues. Here I only want to fix small functionality that it currently has.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions