This question already has an answer here:
- How to make a GIS inventory? 6 answers
Are there any alternatives to the arcpy list functions (ListDatasets, etc.) where the directory can be specified rather than using the env.workspace?
For example, what if I would like to get a list of datasets in several different directories?
Or if I have my workspace in_memory?
The os.walk might partially work, but won't recognize non-file-based data types. Is another function or snippets that can accomplish this?