Skip to content

Clarification on how FtpReply.Success and FtpStatus.Failure are determined #1788

@HarshitDubey-Raik

Description

@HarshitDubey-Raik

Hi team,

I’ve been reviewing the internal implementation of GetReplyInternal() and UploadFileInternalAsync() in FluentFTP to better understand how success/failure is determined after a file upload.

From the source, it appears that FtpReply.Success (and consequently FtpStatus.Success) is decided purely based on the FTP reply code — specifically when the code starts with 1, 2, or 3, as per RFC 959.

Could you please confirm if that’s correct?
Or is there any additional internal logic (e.g., message parsing, command type handling, or timeout logic) that can influence whether Success is considered true or false?

Thanks for maintaining such a great library! 🙌

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions