I have the following command I'm running on my remote server
python -c 'import os, json; print json.dumps(os.listdir("."))'
This works fine for listing files/directories in the current directory however how would I change this to follow directories and list the containing files?