Re: Read number of CSV files
Peter Otten wrote:
[please don't email me directly]
> How is using glob different from os.listdir() Peter?
glob retains the path and allows you to filter the files. Compare:
>>> import os, glob
['one.py', 'two.py', 'one.txt', 'three.py', 'three.txt', 'two.txt']
['alpha/one.py', 'alpha/two.py', 'alpha/one.txt', 'alpha/three.py',
['alpha/one.py', 'alpha/two.py', 'alpha/three.py']
See the documentation for more.
|All times are GMT. The time now is 11:13 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.