MCPcopy
hub / github.com/syncthing/syncthing / CheckPath

Method CheckPath

lib/config/folderconfiguration.go:214–216  ·  view source on GitHub ↗

CheckPath returns nil if the folder root exists and contains the marker file

()

Source from the content-addressed store, hash-verified

212
213// CheckPath returns nil if the folder root exists and contains the marker file
214func (f *FolderConfiguration) CheckPath() error {
215 return f.checkFilesystemPath(f.Filesystem(), ".")
216}
217
218func (f *FolderConfiguration) checkFilesystemPath(ffs fs.Filesystem, path string) error {
219 fi, err := ffs.Stat(path)

Callers 4

TestIssue4903Function · 0.95
CreateMarkerMethod · 0.95
setIgnoresMethod · 0.80

Calls 2

checkFilesystemPathMethod · 0.95
FilesystemMethod · 0.95

Tested by 1

TestIssue4903Function · 0.76