MCPcopy
hub / github.com/syncthing/syncthing / BasicFilesystem

Struct BasicFilesystem

lib/fs/basicfs.go:49–55  ·  view source on GitHub ↗

The BasicFilesystem implements all aspects by delegating to package os. All paths are relative to the root and cannot (should not) escape the root directory.

Source from the content-addressed store, hash-verified

47// The BasicFilesystem implements all aspects by delegating to package os.
48// All paths are relative to the root and cannot (should not) escape the root directory.
49type BasicFilesystem struct {
50 root string
51 junctionsAsDirs bool
52 options []Option
53 userCache *userCache
54 groupCache *groupCache
55}
56
57type (
58 userCache = valueCache[string, *user.User]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected