MCPcopy Create free account
hub / github.com/containerd/nerdctl / fsRemove

Function fsRemove

pkg/netutil/store.go:44–52  ·  view source on GitHub ↗
(e *CNIEnv, net *NetworkConfig)

Source from the content-addressed store, hash-verified

42}
43
44func fsRemove(e *CNIEnv, net *NetworkConfig) error {
45 fn := func() error {
46 if err := os.RemoveAll(net.File); err != nil {
47 return err
48 }
49 return net.clean()
50 }
51 return filesystem.WithLock(filepath.Join(e.NetconfPath, ".nerdctl.lock"), fn)
52}
53
54func fsExists(e *CNIEnv, name string) (bool, error) {
55 fi, err := os.Stat(getConfigPathForNetworkName(e, name))

Callers 1

RemoveNetworkMethod · 0.85

Calls 2

WithLockFunction · 0.92
cleanMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…