MCPcopy
hub / github.com/rclone/rclone / Release

Method Release

cmd/mount2/file.go:97–99  ·  view source on GitHub ↗

Release is called to before a FileHandle is forgotten. The kernel ignores the return value of this method, so any cleanup that requires specific synchronization or could fail with I/O errors should happen in Flush instead.

(ctx context.Context)

Source from the content-addressed store, hash-verified

95// so any cleanup that requires specific synchronization or
96// could fail with I/O errors should happen in Flush instead.
97func (f *FileHandle) Release(ctx context.Context) syscall.Errno {
98 return translateError(f.h.Release())
99}
100
101var _ fusefs.FileReleaser = (*FileHandle)(nil)
102

Callers

nothing calls this directly

Calls 2

translateErrorFunction · 0.70
ReleaseMethod · 0.65

Tested by

no test coverage detected