MCPcopy Create free account
hub / github.com/nsf/gocode / is_dir

Function is_dir

utils.go:73–76  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

71}
72
73func is_dir(path string) bool {
74 fi, err := os.Stat(path)
75 return err == nil && fi.IsDir()
76}
77
78func char_to_byte_offset(s []byte, offset_c int) (offset_b int) {
79 for offset_b = 0; offset_c > 0 && offset_b < len(s); offset_b++ {

Callers 2

find_global_fileFunction · 0.85
pkg_dirsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected