[python-win32] Problem in identifying an archived file in Windows

2009-02-24 Thread venu madhav
Hello all, I am writing an application which has to identify the archived files in a given directory.I've tried using the function i = win32api.GetFileAttributes (full_path) to obtain the attributes.But am unable to identify based on the value it returns as it is returning 5152, 13856 e

Re: [python-win32] opening files with names in non-english characters.

2009-02-24 Thread Tim Roberts
Vernon Cole wrote: > 2) I suspect that Python is NOT returning question mark characters. > Windows (or KIMODO) is probably failing to display some characters > that Python is returning. Actually, you're wrong here. The Windows API is returning the file names in Unicode. The "os.listdir" function

Re: [python-win32] opening files with names in non-english characters.

2009-02-24 Thread Vernon Cole
1) Comparing the time it would take to walk a directory tree thousands of times, with the storage it would take to store thousands of file names, I think you would be much better of to store the list. Buy another memory chip if needed. 2) I suspect that Python is NOT returning question mark chara

Re: [python-win32] opening files with names in non-english characters.

2009-02-24 Thread Ulrich Berning
venu madhav wrote: Hello, First of all thanks for your response. I've written a function as shown below to recurse a directory and return a file based on the value of n. I am calling this fucntion from my main code to catch that filename. The folder which it recurses through contains