I want to check if a folder named "foldername" is empty. I use os.listdir(foldername)==[] to do this, but it will be very slow if the folder has a lot of sub-files. Is there any efficient ways to do this? Thanks~ -- http://mail.python.org/mailman/listinfo/python-list
- How to determine that if a folder is empty? could ildg
- Re: How to determine that if a folder is empty? jepler
- Re: How to determine that if a folder is empty? Bernhard Herzog
- Re: How to determine that if a folder is empty? Neil Hodgson
- Re: How to determine that if a folder is empt... could ildg
- Re: How to determine that if a folder is empt... Neil Hodgson
- Re: How to determine that if a folder is empty? Reinhold Birkenfeld
- Re: How to determine that if a folder is empt... James Dennett
- Re: How to determine that if a folder is ... Mike Meyer
- Re: How to determine that if a folder... Dan Sommers
- Re: How to determine that if a folder... David Cuthbert