MCPcopy
hub / github.com/git-lfs/git-lfs / FileExists

Function FileExists

tools/filetools.go:34–37  ·  view source on GitHub ↗

FileExists determines if a file (NOT dir) exists.

(path string)

Source from the content-addressed store, hash-verified

32
33// FileExists determines if a file (NOT dir) exists.
34func FileExists(path string) bool {
35 ret, isDir := FileOrDirExists(path)
36 return ret && !isDir
37}
38
39// DirExists determines if a dir (NOT file) exists.
40func DirExists(path string) bool {

Callers 4

LockFileMethod · 0.92
resolveReferenceDirsFunction · 0.92
resolveGitStorageDirFunction · 0.92
CloneFileByPathFunction · 0.85

Calls 1

FileOrDirExistsFunction · 0.85

Tested by

no test coverage detected