(_ context.Context)
| 89 | } |
| 90 | |
| 91 | func (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 | |
| 105 | func (fc fuseController) Done() <-chan struct{} { |
| 106 | return fc.done |