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 equivalent
[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
|
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
os.startfile (or
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 and one
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 too long
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
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 \\?\
[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
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 escaping
[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 which
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
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 make sure
Steven D'Aprano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
Are you passing a unicode object to the function?
f = file(uE:\\files\\...\\something.dat, r)
I pass variable c into functions:
c
u'.\\e:\\files\\\u041f\u0420\u041e\u0414\u041e \u041c\u0435\u043d\u0435\u043
[many
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 access
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 make sure
[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 up?
16 matches
Mail list logo