FAQ
Can this be improved upon?

func isADirectory(path string) bool {
f, err := os.Open(path)
handleError(err)
stat, err := f.Stat()
handleError(err)
return stat.IsDir()
}

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 21, '13 at 7:46a
activeMay 21, '13 at 8:15a
posts3
users2
websitegolang.org

2 users in discussion

Jon Renner: 2 posts Jan Mercl: 1 post

People

Translate

site design / logo © 2022 Grokbase