MCPcopy
hub / github.com/rclone/rclone / SyncFprintf

Function SyncFprintf

fs/operations/operations.go:795–803  ·  view source on GitHub ↗

SyncFprintf - Synchronized fmt.Fprintf Ignores errors from Fprintf. Prints to stdout if w is nil

(w io.Writer, format string, a ...any)

Source from the content-addressed store, hash-verified

793//
794// Prints to stdout if w is nil
795func SyncFprintf(w io.Writer, format string, a ...any) {
796 if w == nil || w == os.Stdout {
797 SyncPrintf(format, a...)
798 } else {
799 StdoutMutex.Lock()
800 defer StdoutMutex.Unlock()
801 _, _ = fmt.Fprintf(w, format, a...)
802 }
803}
804
805// SizeString make string representation of size for output
806//

Callers 10

listFileFunction · 0.92
predictDstFromLoggerFunction · 0.92
NewDefaultLoggerFnFunction · 0.85
WithSyncLoggerFunction · 0.85
reportFilenameMethod · 0.85
ListFunction · 0.85
ListLongFunction · 0.85
HashListerFunction · 0.85
HashSumStreamFunction · 0.85
ListDirFunction · 0.85

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 1

predictDstFromLoggerFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…