Il giorno martedì 12 dicembre 2017 13:24:01 UTC+1, Taru Karttunen ha scritto: > > On 11.12 10:07, Ian Lance Taylor wrote: > > On Mon, Dec 11, 2017 at 1:27 AM, Petr Shevtsov <petr.s...@gmail.com > <javascript:>> wrote: > > > s := "http://example.com/" > > > fi, err := os.Stat(s) > > > if os.IsNotExist(err) { > > > > > > Is this a bug in os.IsNotExist[3] or such behavior is intentional? > > > > This sounds like a bug, although it may not be easy to fix. Please > > open an bug report at https://golang.org/issue. Thanks. > > Isn't this just case of a path that is valid on Linux and invalid on > Windows? Invalid paths don't match IsNotExist on Linux either (e.g. > ENAMETOOLONG). >
Yes. https://play.golang.org/p/7xo02WfeHR Manlio Perillo -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.