google / google/renameio

Add support for 'WithModificationTIme()' option

Open
#41 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Go
Stars
679
Forks
34
PR merge metrics
No merged PRs in 30d

Description

In some situations I need to set modification time for the new file.

Having an Option `WithPermissions`

```go
func WithModificationTime(time time.Time) Option {
return optionFunc(func(cfg *config) {
cfg.modTime = &time
})
}
```

that takes provided `time` into account and updates the resulting file would make it possible.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.