Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
import
"os"
6
7
func
isPathRedirect(_ *Root, _ *os.Root, _ string, info os.FileInfo) (bool, error) {
8
return
info.Mode()&os.ModeSymlink != 0, nil
9
}
Callers
4
Create
Method · 0.70
openDirectories
Method · 0.70
openVerifiedDirectory
Method · 0.70
openVerifiedEntry
Method · 0.70
Calls
1
Mode
Method · 0.80
Tested by
no test coverage detected