MCPcopy
hub / github.com/rclone/rclone / readOnly

Method readOnly

vfs/read_write.go:80–82  ·  view source on GitHub ↗

readOnly returns whether flags say fh is read only

()

Source from the content-addressed store, hash-verified

78
79// readOnly returns whether flags say fh is read only
80func (fh *RWFileHandle) readOnly() bool {
81 return (fh.flags & accessModeMask) == os.O_RDONLY
82}
83
84// writeOnly returns whether flags say fh is write only
85func (fh *RWFileHandle) writeOnly() bool {

Callers 5

updateSizeMethod · 0.95
closeMethod · 0.95
_writeAtMethod · 0.95
SyncMethod · 0.95
newRWFileHandleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected