import os

for root, dirs, files in os.walk(os.getcwd()):
    print root + ' contains:'
    for name in files:
        print os.path.join(root, name)
    if '.git' in dirs:
        dirs.remove('.git')
e935f94e9de194fddc9db67fac6f0cc1bf4a8e08
import os

for root, dirs, files in os.walk(os.getcwd()):
    print root + ' contains:'
    for name in files:
        print os.path.join(root, name)
    if '.git' in dirs:
        dirs.remove('.git')