Norbert Unterberg wrote:
> 2005/9/19, Stefan Küng <tortoisesvn@gmail.com>:
>
>
>>Peter Kay wrote:
>>
>>>In the "Checkout directory" box, I filled in "z:/dir", expecting, as is
>>>the usual convension of unixy tools on Windows, that it would accept the
>>>forward slash. Instead, I got:
>>
>>This might be the 'usual convention' for unix tools. But TSVN is a
>>windows application. And windows paths use backslashes, as everyone knows.
>
>
> I don't really understand all this discussion, since the windows API
> happily accepts "z:/dir" as a valid folder name. Try a
> CreateDirectory("c:/xxxx", NULL), it will return TRUE for success. As
> far as I know, all MSDOS and Windows API function have always accepted
> forward slashes as path names. Only the built-in commands of
> command.com and cmd.exe reject the forward slahes.
Maybe the windows API allows forward slashes in paths. But the shell API
(APIs the shell provides, e.g. PathFileExists, PathIsFolder, ...) does
not. If you pass a path with forward slashes there, you get undefined
results (sometimes it works, sometimes it doesn't). Another example I
found is SHFileOperation - it will work with forward slashed paths, but
the dialogs it shows don't work correctly and show *wrong* information!
Stefan
--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 20 20:26:46 2005