//go:build !unix

package workspace

import (
	"io/fs"
	"os"
)

func platformFileIdentity(_ fs.FileInfo) (uint64, uint64, bool) { return 0, 0, false }

type writeParent struct{}

func openOrCreateParentNoFollow(_ *catalogEntry, _ string) (*writeParent, string, error) {
	return nil, "", errUnsafePath
}

func (p *writeParent) close() error { return nil }
func (p *writeParent) targetIdentity(string) (targetIdentity, error) {
	return targetIdentity{}, errUnsafePath
}
func (p *writeParent) createTemp(string) (*os.File, error) { return nil, errUnsafePath }
func (p *writeParent) remove(string) error                 { return errUnsafePath }
func (p *writeParent) rename(string, string) error         { return errUnsafePath }
func (p *writeParent) sync() error                         { return errUnsafePath }
func (p *writeParent) revalidate() error                   { return errUnsafePath }
