[Python-bugs-list] [ python-Bugs-434479 ] os.listdir loses on linux w/NTFS vols

noreply@sourceforge.net noreply@sourceforge.net
Sat, 23 Jun 2001 12:45:45 -0700


Bugs item #434479, was opened at 2001-06-19 07:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=434479&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: jeremy bornstein (ukekuma)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.listdir loses on linux w/NTFS vols

Initial Comment:
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.



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-06-23 12:45

Message:
Logged In: YES 
user_id=21627

This is likely a bug in the NTFS driver, not in Python.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=434479&group_id=5470