In Python, how to find all the files under a directory, including the files in subdirectories ?
- by pythBegin
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