Skip to content

Commit

Permalink
Merge pull request #242 from ml10/add-new-SkipChmodAfterUpload-to-mar…
Browse files Browse the repository at this point in the history
…shaler-if

add  to marshal interface for SFTP config
  • Loading branch information
adamdecaf authored Jan 6, 2025
2 parents 279bb3b + 416cf38 commit 6a80625
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/service/model_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ func (cfg *SFTP) MarshalJSON() ([]byte, error) {
MaxPacketSize int

SkipDirectoryCreation bool
SkipChmodAfterUpload bool
}
return json.Marshal(Aux{
Hostname: cfg.Hostname,
Expand All @@ -184,6 +185,7 @@ func (cfg *SFTP) MarshalJSON() ([]byte, error) {
MaxPacketSize: cfg.MaxPacketSize,

SkipDirectoryCreation: cfg.SkipDirectoryCreation,
SkipChmodAfterUpload: cfg.SkipChmodAfterUpload,
})
}

Expand Down

0 comments on commit 6a80625

Please sign in to comment.