MCPcopy
hub / github.com/syncthing/syncthing / Lchown

Method Lchown

lib/fs/filesystem.go:33–33  ·  view source on GitHub ↗
(name string, uid, gid string)

Source from the content-addressed store, hash-verified

31type Filesystem interface {
32 Chmod(name string, mode FileMode) error
33 Lchown(name string, uid, gid string) error // uid/gid as strings; numeric on POSIX, SID on Windows, like in os/user package
34 Chtimes(name string, atime time.Time, mtime time.Time) error
35 Create(name string) (File, error)
36 CreateSymlink(target, name string) error

Callers 10

TestScanOwnershipPOSIXFunction · 0.95
syncOwnershipMethod · 0.65
TestCopyOwnerFunction · 0.65
syncOwnershipMethod · 0.65
LchownMethod · 0.65
LchownMethod · 0.65
TestFakeFSFunction · 0.65
TestChownFileFunction · 0.65
LchownMethod · 0.65

Implementers 4

BasicFilesystemlib/fs/basicfs.go
metricsFSlib/fs/metrics.go
fakeFSlib/fs/fakefs.go
errorFilesystemlib/fs/errorfs.go

Calls

no outgoing calls

Tested by 4

TestScanOwnershipPOSIXFunction · 0.76
TestCopyOwnerFunction · 0.52
TestFakeFSFunction · 0.52
TestChownFileFunction · 0.52