MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / IsSymlink

Function IsSymlink

agent/utils/files/utils.go:33–35  ·  view source on GitHub ↗
(mode os.FileMode)

Source from the content-addressed store, hash-verified

31)
32
33func IsSymlink(mode os.FileMode) bool {
34 return mode&os.ModeSymlink != 0
35}
36
37func IsBlockDevice(mode os.FileMode) bool {
38 return mode&os.ModeDevice != 0 && mode&os.ModeCharDevice == 0

Callers 2

NewFileInfoFunction · 0.85
checkSymlinkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected