On Thu, Oct 15, 2020 at 8:00 PM nilsocket <nilsoc...@gmail.com> wrote:
> No, dir "a" is being created. Yes, I understand you are trying to create the directory. My point is that you don't verify that the `os.MkdirAll` call succeeds. On my Windows 10 system your program works fine unless I create a file named "a" before running your program. Please modify your program to check the error value returned by `os.MkdirAll` and verify that it is nil. > Intact, I was testing out big list of naughty strings, I didn't have > problem with any string but this one. > > Regarding error, I don't mean error is "linked picture", I mean, for error > one can look at the picture which I have linked. > That wasn't obvious at first glance. The indirection also wasn't necessary. All you had to do was write that the error was something like this (what I saw when I deliberately induced a failure by running "touch a"): 2020/10/15 19:32:16 open a\408_-IMG SRC=javasc� 114ipt:alert(� 39XSS')-: The system cannot find the path specified. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD9Gw7bhtZg15d3%3D_j25BDfZ16PmWW%2Bi0Zpx-9tXt-yEsQ%40mail.gmail.com.