Skip to content

Commit

Permalink
decomposedfs: set mtime during upload
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed Jul 8, 2021
1 parent 66996cb commit 23a9507
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/storage/utils/decomposedfs/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ func (upload *fileUpload) FinishUpload(ctx context.Context) (err error) {
}
}
// use set arbitrary metadata?
/*if upload.info.MetaData["mtime"] != "" {
err := upload.fs.SetMtime(ctx, np, upload.info.MetaData["mtime"])
if upload.info.MetaData["mtime"] != "" {
err := n.SetMtime(ctx, upload.info.MetaData["mtime"])
if err != nil {
log.Err(err).Interface("info", upload.info).Msg("Decomposedfs: could not set mtime metadata")
sublog.Err(err).Interface("info", upload.info).Msg("Decomposedfs: could not set mtime metadata")
return err
}
}*/
}

n.Exists = true

Expand Down

0 comments on commit 23a9507

Please sign in to comment.