MCPcopy Create free account
hub / github.com/codetainerapp/codetainer / IsFile

Function IsFile

Godeps/_workspace/src/github.com/Unknwon/com/file.go:132–138  ·  view source on GitHub ↗

IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.

(filePath string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestIsFileFunction · 0.85
BenchmarkIsFileFunction · 0.85
GetFileListBySuffixFunction · 0.85

Calls 2

StatMethod · 0.45
IsDirMethod · 0.45

Tested by 2

TestIsFileFunction · 0.68
BenchmarkIsFileFunction · 0.68