MCPcopy
hub / github.com/syncthing/syncthing / Create

Method Create

lib/fs/filesystem.go:35–35  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

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
37 DirNames(name string) ([]string, error)
38 Lstat(name string) (FileInfo, error)

Callers 15

TestInWriteableDirFunction · 0.95
TestOSWindowsRemoveFunction · 0.95
TestOSWindowsRemoveAllFunction · 0.95
TestSetPlatformDataFunction · 0.95
TestScanOwnershipPOSIXFunction · 0.95
TestScanOwnershipWindowsFunction · 0.95
newDataFsFunction · 0.95
TestIssue4799Function · 0.95
TestIssue4841Function · 0.95
BenchmarkWalkFunction · 0.95
TestIsDeletedFunction · 0.95

Implementers 4

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

Calls

no outgoing calls

Tested by 15

TestInWriteableDirFunction · 0.76
TestOSWindowsRemoveFunction · 0.76
TestOSWindowsRemoveAllFunction · 0.76
TestSetPlatformDataFunction · 0.76
TestScanOwnershipPOSIXFunction · 0.76
TestScanOwnershipWindowsFunction · 0.76
newDataFsFunction · 0.76
TestIssue4799Function · 0.76
TestIssue4841Function · 0.76
BenchmarkWalkFunction · 0.76
TestIsDeletedFunction · 0.76