On 11.12 10:07, Ian Lance Taylor wrote:
> On Mon, Dec 11, 2017 at 1:27 AM, Petr Shevtsov <petr.shevt...@gmail.com> 
> 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).

- Taru Karttunen

-- 
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.

Reply via email to