func Permissions(mode os.FileMode) Option {
	return optionFunc(func(c *config) error {
		if c.perm != defaultConfig().perm {
			return &werror{"multiple permissions", nil}
		}
		c.perm = uint32(mode.Perm())
		return nil
	})
}
// Permissions specifies the Unix permissions to be set on the target file.
Permissions specifies the Unix permissions to be set on the target file.
// Permissions specifies the Unix permissions to be set on the target file .
func Permissions(mode os.FileMode) Option {
	return optionFunc(func(c *config) error {
		if c.perm != defaultConfig().perm {
			return &werror{"multiple permissions", nil}
		}
		c.perm = uint32(mode.Perm())
		return nil
	})
}
func Permissions ( mode os . FileMode ) Option { return optionFunc ( func ( c * config ) error { if c . perm != defaultConfig ( ) . perm { return & werror { " " , nil } } c . perm = uint32 ( mode . Perm ( ) ) return nil } ) }
Permissions specifies the Unix permissions to be set on the target file.
Permissions specifies the Unix permissions to be set on the target file .