Re: File Name Format

2007-05-08 Thread Grant Edwards
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

Re: File Name Format

2007-05-08 Thread Marc 'BlackJack' Rintsch
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

Re: File Name Format

2007-05-08 Thread Grant Edwards
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.

Re: File Name Format

2007-05-08 Thread rishi pathak
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

Re: File Name Format

2007-05-08 Thread Diez B. Roggisch
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

File Name Format

2007-05-08 Thread Anand
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