MCPcopy Create free account
hub / github.com/cli/cli / isPathRedirect

Function isPathRedirect

internal/safepaths/link_other.go:7–9  ·  view source on GitHub ↗
(_ *Root, _ *os.Root, _ string, info os.FileInfo)

Source from the content-addressed store, hash-verified

5import "os"
6
7func isPathRedirect(_ *Root, _ *os.Root, _ string, info os.FileInfo) (bool, error) {
8 return info.Mode()&os.ModeSymlink != 0, nil
9}

Callers 4

CreateMethod · 0.70
openDirectoriesMethod · 0.70
openVerifiedDirectoryMethod · 0.70
openVerifiedEntryMethod · 0.70

Calls 1

ModeMethod · 0.80

Tested by

no test coverage detected