Skip to content

Add support for 'WithModificationTIme()' option #41

@anatol

Description

@anatol

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

Having an Option WithPermissions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions