In Python, how to find all the files under a directory, including the files in subdirectories ?
Posted
by pythBegin
on Stack Overflow
See other posts from Stack Overflow
or by pythBegin
Published on 2010-05-19T12:08:53Z
Indexed on
2010/05/19
12:10 UTC
Read the original article
Hit count: 167
Is there any built in functions to find all the files under a particular directory including files under subdirectories ? I have tried this code, but not working...may be the logic itself is wrong...
def fun(mydir): lis=glob.glob(mydir) length=len(lis) l,i=0,0 if len(lis): while(l+i
© Stack Overflow or respective owner