Re: [go-nuts] Unable to create a specific file in windows

2020-10-16 Thread Kurtis Rader
On Fri, Oct 16, 2020 at 2:36 PM nilsocket wrote: > I was trying to create a package which sanitizes file name, for testing > purposes, I choose blns > . > > I create a directory, named "blns" and sanitize names from blns and create > those

Re: [go-nuts] Unable to create a specific file in windows

2020-10-16 Thread Ian Lance Taylor
On Fri, Oct 16, 2020 at 2:36 PM nilsocket wrote: > > I was trying to create a package which sanitizes file name, for testing > purposes, I choose blns. > > I create a directory, named "blns" and sanitize names from blns and create > those files in "blns" directory. > > I have tested 516 strings

Re: [go-nuts] Unable to create a specific file in windows

2020-10-16 Thread nilsocket
I was trying to create a package which sanitizes file name, for testing purposes, I choose blns . I create a directory, named "blns" and sanitize names from blns and create those files in "blns" directory. I have tested 516 strings in L

Re: [go-nuts] Unable to create a specific file in windows

2020-10-15 Thread Kurtis Rader
On Thu, Oct 15, 2020 at 8:00 PM nilsocket 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" bef

Re: [go-nuts] Unable to create a specific file in windows

2020-10-15 Thread nilsocket
No, dir "a" is being created. 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. On Friday, October 16, 2020 at 8:

Re: [go-nuts] Unable to create a specific file in windows

2020-10-15 Thread Kurtis Rader
On Thu, Oct 15, 2020 at 7:29 PM Kurtis Rader wrote: > Works for me. Of course the actual error you're seeing is "The system > cannot find the path specified", not "Linked picture". You're not checking > the error returned by `os.MkdirAll` so I would presume that creating the > directory "a" is fa

Re: [go-nuts] Unable to create a specific file in windows

2020-10-15 Thread Kurtis Rader
Works for me. Of course the actual error you're seeing is "The system cannot find the path specified", not "Linked picture". You're not checking the error returned by `os.MkdirAll` so I would presume that creating the directory "a" is failing on your system. Try printing the error returned by `os.M