MCPcopy
hub / github.com/syncthing/syncthing / addWriterLocked

Method addWriterLocked

lib/model/sharedpullerstate.go:153–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func (s *sharedPullerState) addWriterLocked() error {
154 return inWritableDir(s.tempFileInWritableDir, s.fs, s.tempName, s.ignorePerms)
155}
156
157// tempFileInWritableDir should only be called from tempFile.
158func (s *sharedPullerState) tempFileInWritableDir(_ string) error {

Callers 2

tempFileMethod · 0.95
finalCloseMethod · 0.95

Calls 1

inWritableDirFunction · 0.85

Tested by

no test coverage detected