func()

in file.go [171:180]


func (f *File) ensureMode(scope Scope) error {
	provider := f.provider(scope)
	path := filepath.Join(provider.Prefix, f.Path)

	if err := os.Chmod(path, f.mode()); err != nil {
		return fmt.Errorf("failed to set mode: %w", err)
	}

	return nil
}