Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions sftp/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ pub const MAX_NAME_ENTRY_SIZE: usize = 4 + MAX_PATH_LEN + 4 + MAX_ATTRS_LEN;
/// and directory listings are streamed, never buffered whole.
///
/// The largest piece is a [`NameEntry`], since it contains a full path.
/// [`SftpSink`](crate::sftpsink::SftpSink) always reserves
/// [`SFTP_FIELD_LEN_LENGTH`] bytes for a length prefix at the start of the
/// buffer, so that is included too.
pub const MAX_RESPONSE_LEN: usize = SFTP_FIELD_LEN_LENGTH + MAX_NAME_ENTRY_SIZE;

// TODO is utf8 enough, or does this need to be an opaque binstring?
Expand Down