[Python-bugs-list] [ python-Bugs-577191 ] glob returns empty list for 2G+ files
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 03 Jul 2002 15:41:43 -0700
Bugs item #577191, was opened at 2002-07-03 15:41
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=577191&group_id=5470
Category: Python Library
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard Holmes (rholmes04)
Assigned to: Nobody/Anonymous (nobody)
Summary: glob returns empty list for 2G+ files
Initial Comment:
When trying to use the glob.glob() function on a SINGLE file larger than 2GB in size , it returns an empty
list.
If the file is 2^31-1 then the glob() function works correctly. If wildcard are added to the string it will also
work.
Example:
The directory has 2 files.
big.txt : greather then 2GB
small.txt : less than 2G
1)
list = glob.glob('./big.txt')
print list
[]
2)
list = glob.glob('./small.txt')
print list
['./small.txt']
3)
list = glob.glob('./*.txt')
print list
['./small.txt','./big.txt']
Problem has been observed on python 2.1 on both Solaris 5.7 & Hpux 11.00
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=577191&group_id=5470