Oh, OK, I see, thanks for your reply.
Why the choice to separate these two kinds of paths has been made?
Should we use path package only for URL, or something like that?
On Saturday, August 4, 2012 5:04:18 PM UTC+1, Adrien wrote:
Hi all,
Just to inform you that the function path.Dir() always returns "." with a Windows path formated like this: C:\Users\MyPath
It's probably because, in the file /src/pkg/path/path.go, the used separator for all functions is '/' and not uint8(os.PathSeparator).
When we try to open a file with our program on Windows, the retrieved path is formated with '\' separators: because of that, we don't have the expected result...
I think this issue is easy to fix (we just need to use os.PathSeparator instead of "/").
Cheers,
Adrien