MCPcopy
hub / github.com/lxc/incus / PathExists

Function PathExists

shared/util/filesystem.go:10–17  ·  view source on GitHub ↗

PathExists checks if the provided path exists.

(name string)

Source from the content-addressed store, hash-verified

8
9// PathExists checks if the provided path exists.
10func PathExists(name string) bool {
11 _, err := os.Lstat(name)
12 if err != nil && errors.Is(err, fs.ErrNotExist) {
13 return false
14 }
15
16 return true
17}

Callers 15

GetImageFileMethod · 0.92
GetPrivateImageFileMethod · 0.92
ConnectSimpleStreamsFunction · 0.92
certificateDetailsMethod · 0.92
initAppArmorMethod · 0.92
InitMethod · 0.92
NewSeccompServerFunction · 0.92
HandleMountSyscallMethod · 0.92
setupMethod · 0.92
LeasesMethod · 0.92
sriovGetFreeVFInterfaceFunction · 0.92

Calls

no outgoing calls

Tested by 8

newEndpointsFunction · 0.74
TestSchema_FileFunction · 0.74
TestDotGoFunction · 0.74
TestBootstrapFunction · 0.74
TestKeyPairAndCAFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…