On 2007-05-08, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, Grant Edwards wrote:
>
>> On 2007-05-08, Anand <[EMAIL PROTECTED]> wrote:
>>
>>> How do I convert programmatically the file names from WIN32 to UNIX format?
>>
>> You don't need to. AFAIK, all legal WIN3
In <[EMAIL PROTECTED]>, Grant Edwards wrote:
> On 2007-05-08, Anand <[EMAIL PROTECTED]> wrote:
>
>> How do I convert programmatically the file names from WIN32 to UNIX format?
>
> You don't need to. AFAIK, all legal WIN32 filenames are legal
> UNIX file names.
Doesn't this depend more on the f
On 2007-05-08, Anand <[EMAIL PROTECTED]> wrote:
> How do I convert programmatically the file names from WIN32 to UNIX format?
You don't need to. AFAIK, all legal WIN32 filenames are legal
UNIX file names.
> A code snippet would be of great help.
As would an example of what you're trying to do.
One thing you could do is to create assign dir for c drive d drive etc as /c
, /d etc
then this would work
unix_name = win_name.replace("\\","/").replace("c:","/c").replace("d:","/d")
On 5/8/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
Anand wrote:
> Greetings,
>
> How do I convert programm
Anand wrote:
> Greetings,
>
> How do I convert programmatically the file names from WIN32 to UNIX
> format?
>
> A code snippet would be of great help.
> We are new to python! :)
unix_name = win_name.replace("\\", "/")
But this of course won't work for anything that starts with a drive letter
f
Greetings,
How do I convert programmatically the file names from WIN32 to UNIX format?
A code snippet would be of great help.
We are new to python! :)
Thanks.
Best regards,
Anand
--
http://mail.python.org/mailman/listinfo/python-list