This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author l0nwlf
Recipients george.hu, l0nwlf
Date 2010-04-15.01:06:43
SpamBayes Score 4.9259647e-06
Marked as misclassified No
Message-id <1271293605.12.0.272263662327.issue8402@psf.upfronthosting.co.za>
In-reply-to
Content
When you do :
glob.glob("c:\abc\afolderwith[test]\*") returns empty list
It looks for all files in three directories:
c:\abc\afolderwitht\*
c:\abc\afolderwithe\*
c:\abc\afolderwiths\*

Ofcourse they do not exist so it returns empty list

06:35:05 l0nwlf-MBP:Desktop $ ls -R test
1 2 3
06:35:15 l0nwlf-MBP:Desktop $ ls -R test1
alpha beta  gamma

>>> glob.glob('/Users/l0nwlf/Desktop/test[123]/*')
['/Users/l0nwlf/Desktop/test1/alpha', '/Users/l0nwlf/Desktop/test1/beta', '/Users/l0nwlf/Desktop/test1/gamma']

As you can see, by giving the argument test[123] it looked for test1, test2, test3. Since test1 existed, it gave all the files present within it.
History
Date User Action Args
2010-04-15 01:06:45l0nwlfsetrecipients: + l0nwlf, george.hu
2010-04-15 01:06:45l0nwlfsetmessageid: <1271293605.12.0.272263662327.issue8402@psf.upfronthosting.co.za>
2010-04-15 01:06:43l0nwlflinkissue8402 messages
2010-04-15 01:06:43l0nwlfcreate