exclude binary files from os.walk

rbt rbt at athop1.ath.vt.edu
Wed Jan 26 17:32:47 EST 2005


Grant Edwards wrote:
> On 2005-01-26, rbt <rbt at athop1.ath.vt.edu> wrote:
> 
> 
>>Is there an easy way to exclude binary files (I'm working on
>>Windows XP) from the file list returned by os.walk()?
> 
> 
> Sure, assuming you can provide a rigorous definition of 'binary
> files'.  :)

non-ascii



More information about the Python-list mailing list