On Tuesday, September 11, 2012 12:21:24 AM UTC-7, Tim Golden wrote:
> And so it does, but you'll notice from the MSDN docs that the \\?
> syntax must be supplied as a Unicode string, which os.listdir
> will do if you pass it a Python unicode object and not otherwise:
I was saying os.listdir doesn'
On Monday, September 10, 2012 1:16:13 PM UTC-7, Steven D'Aprano wrote:
> On Mon, 10 Sep 2012 10:25:29 -0700, ruck wrote:
>
>
>
> > In Python 2.7.2 on Windows 7,
>
> >
>
> > os.walk() uses isdir(),
>
> > which comes from os.path,
>
>
In Python 2.7.2 on Windows 7,
os.walk() uses isdir(),
which comes from os.path,
which really comes from ntpath.py,
which really comes from genericpath.py
I want os.walk() to use a modified isdir() on my Windows 7.
Not knowing any better, it seems to me like ntpath.py would be a good place to
int
On Thursday, September 6, 2012 7:05:39 PM UTC-7, Terry Reedy wrote:
> On 9/6/2012 8:55 PM, ruck wrote:
>
> > (This with Python 2.7.2 on Windows 7)
>
> >
>
> > os.stat() won't recognize a filename ending in period.
>
> > It will ignore trailing p
On Thursday, September 6, 2012 6:49:43 PM UTC-7, alex23 wrote:
> On Sep 7, 10:55 am, ruck wrote:
>
> > (This with Python 2.7.2 on Windows 7)
>
> > rename goo to "goo...", then,
>
>
>
> I'm unable to rename any file to have a '...' su
On Thursday, September 6, 2012 6:19:11 PM UTC-7, Dave Angel wrote:
> On 09/06/2012 08:55 PM, ruck wrote:
>
> > (This with Python 2.7.2 on Windows 7)
>
> >
>
> > os.stat() won't recognize a filename ending in period.
>
> > It will ignore trailing per
(This with Python 2.7.2 on Windows 7)
os.stat() won't recognize a filename ending in period.
It will ignore trailing periods.
If you ask it about file 'goo...' it will report on file 'goo'
And if 'goo' doesn't exist, os.stat will complain.
create file goo, then
>>> os.stat('goo')
nt.st