Is exist some usual way to enumerate all files (and optionally folders, optionally recursive with sub dirs) inside a given folder? So I pass a folder path and get list of resulting full paths.
If you show how to exclude all read-only and all hidden files from this result, it'd be better. So input params:
- dir: full path of a folder
- option_dirs: include dirs paths to listing
- option_subdirs: process also all subdirs of dir
- option_no_ro: exclude read-only files
- option_no_hid: exclude hidden files
Python2.