I have a SharePoint site with folders, sub-folders, and files. I am trying to create a file directory to help people know where certain files are and what they are. I can easily download the folder/file directory from SharePoint which includes folder/file name, date modified, last modified by, type (folder or file) and the file path. Unfortunately, when you download the directory, it does not keep them in parent-child order.
Is there a way to easily sort the list using the file path so that I get a list in the correct folder / sub-folder / file order? If there is a way to do this directly in the download from SharePoint, that would be even better but I've looked everywhere and it doesn't seem to be an option.
Example of Current Output
- /Bob's Folder/Project Management
- /Bob's Folder/Deliverables
- /Bob's Folder/Calendar
- /Bob's Folder/Project Management/Project Banana
- /Bob's Folder/Deliverables/Week 1
- /Bob's Folder/Project Management/Project Banana/Project Plan
- /Bob's Folder/Deliverables/Week 1/Best Deliverable Ever
Example of Desired Output
- /Bob's Folder/Project Management
- /Bob's Folder/Project Management/Project Banana
- /Bob's Folder/Project Management/Project Banana/Project Plan
- /Bob's Folder/Deliverables
- /Bob's Folder/Deliverables/Week 1
- /Bob's Folder/Deliverables/Week 1/Best Deliverable Ever
- /Bob's Folder/Calendar

