Python: return files in directory and subdirectory
Question: Trying to create a function that returns the # of files found a directory and
its subdirectories. Just need help getting started


Answer: One - liner

    
    
    import os
    cpt = sum([len(files) for r, d, files in os.walk("G:\CS\PYTHONPROJECTS")])
    

