io/fs.FileInfo.IsDir (method)
28 uses
io/fs (current package)
fs.go#L155: IsDir() bool // abbreviation for Mode().IsDir()
readdir.go#L55: return di.fileInfo.IsDir()
walk.go#L125: func (d *statDirEntry) IsDir() bool { return d.info.IsDir() }
github.com/go-pg/migrations/v8
collection.go#L199: if f.IsDir() {
go/build
build.go#L145: return err == nil && fi.IsDir()
build.go#L835: if d.IsDir() {
build.go#L1235: if !ent.IsDir() && strings.HasSuffix(ent.Name(), ".go") {
golang.org/x/tools/go/packages
golist_overlay.go#L279: exists = err == nil && info.IsDir()
golist_overlay.go#L285: if info, err := os.Stat(vendoredPath); err == nil && info.IsDir() {
golang.org/x/tools/internal/gcimporter
gcimporter.go#L133: if f, err := os.Stat(filename); err == nil && !f.IsDir() {
gcimporter.go#L141: if f, err := os.Stat(filename); err == nil && !f.IsDir() {
golang.org/x/tools/internal/gocommand
vendor.go#L70: if fi, err := os.Stat(filepath.Join(mainMod.Dir, "vendor")); err == nil && fi.IsDir() {
internal/goroot
gc.go#L84: if fi, err := os.Stat(goDir); err == nil && fi.IsDir() {
gc.go#L87: if fi, err = os.Stat(goDir); err == nil && fi.IsDir() {
gc.go#L91: if fi, err := os.Stat(dir); err == nil && fi.IsDir() {
gc.go#L125: if fi, err := os.Stat(full); err == nil && !fi.IsDir() {
net/http
fs.go#L62: if !fi.IsDir() {
fs.go#L119: func (d fileInfoDirs) isDir(i int) bool { return d[i].IsDir() }
fs.go#L616: if d.IsDir() {
fs.go#L629: if d.IsDir() {
fs.go#L652: if d.IsDir() {
os
file_unix.go#L23: if err == nil && fi.IsDir() {
path.go#L22: if dir.IsDir() {
path.go#L53: if err1 == nil && dir.IsDir() {
path/filepath
match.go#L328: if !fi.IsDir() {
path.go#L417: if !info.IsDir() {
path.go#L444: if !fileInfo.IsDir() || err != SkipDir {
path.go#L482: func (d *statDirEntry) IsDir() bool { return d.info.IsDir() }