MCPcopy
hub / github.com/syncthing/syncthing / Chmod

Method Chmod

lib/fs/filesystem.go:32–32  ·  view source on GitHub ↗
(name string, mode FileMode)

Source from the content-addressed store, hash-verified

30// The Filesystem interface abstracts access to the file system.
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)

Callers 15

TestOSWindowsRemoveFunction · 0.95
TestOSWindowsRemoveAllFunction · 0.95
EnsureDirFunction · 0.95
copyFileFunction · 0.65
tempFileInWritableDirMethod · 0.65
writeFilePermFunction · 0.65
TestDeleteIgnorePermsFunction · 0.65
TestIssue4573Function · 0.65
handleDirMethod · 0.65
shortcutFileMethod · 0.65
performFinishMethod · 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 11

TestOSWindowsRemoveFunction · 0.76
TestOSWindowsRemoveAllFunction · 0.76
writeFilePermFunction · 0.52
TestDeleteIgnorePermsFunction · 0.52
TestIssue4573Function · 0.52
testCreateAtomicReplaceFunction · 0.52
TestChmodFileFunction · 0.52
TestChownFileFunction · 0.52
TestChmodDirFunction · 0.52