Message103163
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. |
|
Date |
User |
Action |
Args |
2010-04-15 01:06:45 | l0nwlf | set | recipients:
+ l0nwlf, george.hu |
2010-04-15 01:06:45 | l0nwlf | set | messageid: <1271293605.12.0.272263662327.issue8402@psf.upfronthosting.co.za> |
2010-04-15 01:06:43 | l0nwlf | link | issue8402 messages |
2010-04-15 01:06:43 | l0nwlf | create | |
|