MCPcopy
hub / github.com/caddyserver/caddy / Stat

Method Stat

internal/filesystems/os.go:19–19  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

17
18func (OsFS) Open(name string) (fs.File, error) { return os.Open(name) }
19func (OsFS) Stat(name string) (fs.FileInfo, error) { return os.Stat(name) }
20func (OsFS) Glob(pattern string) ([]string, error) { return filepath.Glob(pattern) }
21func (OsFS) ReadDir(name string) ([]fs.DirEntry, error) { return os.ReadDir(name) }
22func (OsFS) ReadFile(name string) ([]byte, error) { return os.ReadFile(name) }

Callers 15

cmdUntrustFunction · 0.80
cmdRespondFunction · 0.80
funcListFilesMethod · 0.80
funcFileStatMethod · 0.80
selectFileMethod · 0.80
strictFileExistsMethod · 0.80
loadDirectoryContentsMethod · 0.80
isSymlinkTargetDirMethod · 0.80
ServeHTTPMethod · 0.80
mapDirOpenErrorMethod · 0.80
directoryListingMethod · 0.80
TestFileCreationModeFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestFileCreationModeFunction · 0.64
TestFileModeModificationFunction · 0.64
TestDirMode_InheritFunction · 0.64
TestDirMode_FromFileFunction · 0.64
TestDirMode_Default0700Function · 0.64
TestFileCreationModeFunction · 0.64