list all files in directory and subdirectories code example
Example 1: get list of all files in folder and subfolders python
for path, subdirs, files in os.walk(root):
for name in files:
print os.path.join(path, name)
Example 2: bash list all files in directory and subdirectories
# Bash-specific
# syntax
ls -R <file-or-directory-to-find>
# example
ls -R *hotographi*