MCPcopy
hub / github.com/kopia/kopia / Unmount

Method Unmount

internal/mount/mount_fuse.go:91–103  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

89}
90
91func (fc fuseController) Unmount(_ context.Context) error {
92 if err := fc.fuseConnection.Unmount(); err != nil {
93 return errors.Wrap(err, "unmount error")
94 }
95
96 if fc.isTempDir {
97 if err := os.Remove(fc.mountPoint); err != nil {
98 return errors.Wrap(err, "unable to remove temporary mount point")
99 }
100 }
101
102 return nil
103}
104
105func (fc fuseController) Done() <-chan struct{} {
106 return fc.done

Callers

nothing calls this directly

Calls 2

UnmountMethod · 0.65
RemoveMethod · 0.65

Tested by

no test coverage detected