Skip to content

Commit

Permalink
Merge pull request #14 from Ahuge/ah/feature/preserve-flags
Browse files Browse the repository at this point in the history
Implement logic that allows uploading and downloading empty files
  • Loading branch information
Ahuge committed Mar 8, 2024
2 parents 8645b7e + fd0d7e2 commit 373b90b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,14 +949,14 @@ func (s *S3) CreateDir(
input.Metadata["file-atime"] = aws.String(atime)
}

userId := metadata.FileUID
if userId != "" {
input.Metadata["file-owner"] = aws.String(userId)
userID := metadata.FileUID
if userID != "" {
input.Metadata["file-owner"] = aws.String(userID)
}

groupId := metadata.FileGID
if groupId != "" {
input.Metadata["file-group"] = aws.String(groupId)
groupID := metadata.FileGID
if groupID != "" {
input.Metadata["file-group"] = aws.String(groupID)
}

if len(metadata.UserDefined) != 0 {
Expand Down

0 comments on commit 373b90b

Please sign in to comment.