Trying to create a function that returns the # of files found a directory and its subdirectories. Just need help getting started
Use os.walk. It will do the recursion for you. See http://www.pythonforbeginners.com/code-snippets-source-code/python-os-walk/ for an example.
os.walk
total = 0 for root, dirs, files in os.walk(folder): total += len(files)