MCPcopy
hub / github.com/Tencent/CodeAnalysis / IsDir

Function IsDir

tools/owl/scan/scanner.go:54–60  ·  view source on GitHub ↗

IsDir check if the path is a directory

(path string)

Source from the content-addressed store, hash-verified

52
53// IsDir check if the path is a directory
54func IsDir(path string) bool {
55 s, err := os.Stat(path)
56 if err != nil {
57 return false
58 }
59 return s.IsDir()
60}
61
62// Files returns the collection of all file paths under the specified path
63func Files(folder string) ([]string, error) {

Callers 2

IsFileFunction · 0.85
SearchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected