fix(sftp): preserve open attrs metadata (#2929)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
Henry Guo
2026-05-12 21:34:52 +08:00
committed by GitHub
parent 25cf164461
commit fe5690ca70
7 changed files with 330 additions and 44 deletions
+4
View File
@@ -59,6 +59,10 @@ pub(super) enum HandleState {
/// The size field tracks the running total of bytes received so
/// a client polling FSTAT during a transfer sees the progress.
attrs: FileAttributes,
/// Raw attributes supplied on OPEN. Only fields explicitly set
/// by the client are copied into S3 user metadata at object
/// creation time.
open_attrs: FileAttributes,
/// Multipart upload lifecycle state. See WritePhase.
phase: WritePhase,
},