Message5113
os.listdir() on a directory which is on an NTFS volume
omits one entry from the directory listing.
Example:
planet {188}: grep ntfs /etc/fstab
/dev/hda1 /lose ntfs
uid=500,gid=500,umask=555 1 2
planet {189}: ls /lose
Documents and Settings/ My Music/ Program Files/
PUTTY.RND $Secure unzipped/ WINNT/
planet {190}: python2.1
Python 2.1 (#1, Jun 19 2001, 00:32:28)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on
linux2
Type "copyright", "credits" or "license" for more
information.
>>> import os
>>> os.listdir('/lose')
['$Secure', 'Documents and Settings', 'My Music',
'Program Files', 'PUTTY.RND', 'unzipped']
>>>
planet {191}:
(In the example, note that the directory 'WINNT' is not
returned by os.listdir.)
I have verified this bug with/1.5.2, 1.6.1, and 2.1 on
Linux (RH7.1) only. I have only tested it on this one
NTFS volume and this one computer.
|
|
Date |
User |
Action |
Args |
2007-08-23 13:54:53 | admin | link | issue434479 messages |
2007-08-23 13:54:53 | admin | create | |
|