MCPcopy
hub / github.com/rclone/rclone / WriteFileHandle

Struct WriteFileHandle

vfs/write.go:14–29  ·  view source on GitHub ↗

WriteFileHandle is an open for write handle on a File

Source from the content-addressed store, hash-verified

12
13// WriteFileHandle is an open for write handle on a File
14type WriteFileHandle struct {
15 baseHandle
16 mu sync.Mutex
17 cond sync.Cond // cond lock for out of sequence writes
18 remote string
19 pipeWriter *io.PipeWriter
20 o fs.Object
21 result chan error
22 file *File
23 offset int64
24 flags int
25 closed bool // set if handle has been closed
26 writeCalled bool // set the first time Write() is called
27 opened bool
28 truncated bool
29}
30
31// Check interfaces
32var (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected