MCPcopy
hub / github.com/syncthing/syncthing / directoryContents

Function directoryContents

test/util.go:348–358  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

346}
347
348func directoryContents(dir string) ([]fileInfo, error) {
349 res := make(chan fileInfo)
350 errc := startWalker(dir, res, nil)
351
352 var files []fileInfo
353 for f := range res {
354 files = append(files, f)
355 }
356
357 return files, <-errc
358}
359
360func mergeDirectoryContents(c ...[]fileInfo) []fileInfo {
361 m := make(map[string]fileInfo)

Callers 5

benchmarkTransferFunction · 0.85
TestConflictsDefaultFunction · 0.85
TestOverrideFunction · 0.85
TestSyncClusterFunction · 0.85
scSyncAndCompareFunction · 0.85

Calls 1

startWalkerFunction · 0.70

Tested by 5

benchmarkTransferFunction · 0.68
TestConflictsDefaultFunction · 0.68
TestOverrideFunction · 0.68
TestSyncClusterFunction · 0.68
scSyncAndCompareFunction · 0.68