From 416cf38e7ca53f611533936155b2cdf581515291 Mon Sep 17 00:00:00 2001 From: Andy Hamilton Date: Fri, 3 Jan 2025 16:11:36 -0600 Subject: [PATCH] add SkipChmodAfterUpload to marshal if for SFTP config --- internal/service/model_upload.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/service/model_upload.go b/internal/service/model_upload.go index 9d650be..5e27b88 100644 --- a/internal/service/model_upload.go +++ b/internal/service/model_upload.go @@ -169,6 +169,7 @@ func (cfg *SFTP) MarshalJSON() ([]byte, error) { MaxPacketSize int SkipDirectoryCreation bool + SkipChmodAfterUpload bool } return json.Marshal(Aux{ Hostname: cfg.Hostname, @@ -184,6 +185,7 @@ func (cfg *SFTP) MarshalJSON() ([]byte, error) { MaxPacketSize: cfg.MaxPacketSize, SkipDirectoryCreation: cfg.SkipDirectoryCreation, + SkipChmodAfterUpload: cfg.SkipChmodAfterUpload, }) }