Sergey wrote:
> (but now I must have two pieces of code, one for linux and one for windows)
> Interesting, why developers of python didn't use here all power of win32 API?
It will in Python 2.5.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
"Claudio Grondi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Sergey wrote:
> I don't know if and how it apply and can be of any help here, but in my C
> programs in the very past after switching from DOS to
> Windows long names a following trick solved often my problems with to
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[Sergey]
>Have a look at win32file.FindFilesIterator from the pywin32 extensions.
>Maybe that can cope? (I haven't looked at the source).
Yeah, it works!
THANK YOU!
(but now I must have two pieces of code, one for linux an
Sergey wrote:
> "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> [Sergey]
>
>
>>I see from another post that CreateFile cannot open your file.
>>That puts it further away from Python, although it doesn't
>>explain how some other program can see the files. Can you use
>>o
[Sergey]
| "Tim Golden" <[EMAIL PROTECTED]> wrote in
| message news:[EMAIL PROTECTED]
| [Sergey]
|
| >I see from another post that CreateFile cannot open your file.
| >That puts it further away from Python, although it doesn't
| >explain how some other program can see the files. Can you use
| >o
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[Sergey]
>I see from another post that CreateFile cannot open your file.
>That puts it further away from Python, although it doesn't
>explain how some other program can see the files. Can you use
>os.startfile (or its equiva
[Sergey]
| "Tim Golden" <[EMAIL PROTECTED]> wrote in
| message news:[EMAIL PROTECTED]
| [Sergey]
|
| >Not to state the obvious, but can you cut-and-paste that long
| >string (the one starting with \\?\e:\...) from the Python
| >interpreter into the [S]tart [R]un [O]pen field to see what
| >comes
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[Sergey]
>Not to state the obvious, but can you cut-and-paste that long
>string (the one starting with \\?\e:\...) from the Python
>interpreter into the [S]tart [R]un [O]pen field to see what
>comes up? I'm just trying to ma
On Tue, 14 Feb 2006 14:29:44 +0300, Sergey wrote:
> Hello.
>
> I try to open file with pathname length 282 bytes:
> E:\files\..\something.dat
>
> On MSDN
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp)
> described method to acces
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Are you passing a unicode object to the function?
>
> f = file(u"E:\\files\\...\\something.dat", "r")
I pass variable c into functions:
>>> c
u'.\\e:\\files\\\u041f\u0420\u041e\u0414\u041e \u041c\u0435\u043d\u043
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[Sergey]
>Not to state the obvious, but can you cut-and-paste that long
>string (the one starting with \\?\e:\...) from the Python
>interpreter into the [S]tart [R]un [O]pen field to see what
>comes up? I'm just trying to ma
On Tue, 14 Feb 2006 22:43:50 +1100, Steven D'Aprano wrote:
> On Tue, 14 Feb 2006 14:29:44 +0300, Sergey wrote:
>
>> Hello.
>>
>> I try to open file with pathname length 282 bytes:
>> E:\files\..\something.dat
>>
>> On MSDN
>> (http://msdn.microsoft.com/library/default.asp?url=/
[Sergey]
| "Tim Golden" <[EMAIL PROTECTED]> wrote in
| message news:[EMAIL PROTECTED]
| [Sergey]
|
| >But note that r prefix to the string. Is it possible
| >that your string didn't include it? If not, then the
| >backslash character which Windows uses as a separator
| >can be stolen by Python w
"Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
[Sergey]
>But note that r prefix to the string. Is it possible
>that your string didn't include it? If not, then the
>backslash character which Windows uses as a separator
>can be stolen by Python which sees it as an escapin
[Sergey]
| I try to open file with pathname length 282 bytes:
| E:\files\..\something.dat
| [... MS advise ...] just add prefix \\?\ to file name.
| But when I try to pass prefixed name to file(), I get the
| same result as when I don't add the prefix: file not found.
With a fi
Hello.
I try to open file with pathname length 282 bytes:
E:\files\..\something.dat
On MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp)
described method to access
files with path length
up to 32000 bytes: just add prefix \\?\ t
16 matches
Mail list logo