Hello, I've had success using Pythons OS and pathlib library More info on how to do that can be found here: https://stackoverflow.com/questions/50714469/recursively-iterate-through-all-subdirectories-using-pathlib
Since OS and pathlib are part of Python's standard library you can find several resources on how to use them online. Hopefully that helped. Best, Francisco Juarez -----Original Message----- From: Code for Libraries <CODE4LIB@LISTS.CLIR.ORG> On Behalf Of Dewees, John Sent: Thursday, June 9, 2022 10:40 To: CODE4LIB@LISTS.CLIR.ORG Subject: Re: [CODE4LIB] [EXT] [CODE4LIB] List Names - sub-folders names [Some people who received this message don't often get email from john.dew...@rochester.edu. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] It looks like Karen's Directory Printer has an option to just return folder information and omit file information, which I think will provide the results you are looking for. https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.karenware.com%2Fpowertools%2Fkarens-directory-printer&data=05%7C01%7Cfrancisco.d.juarez%40VANDERBILT.EDU%7C09dde6af9cfb4abfda2608da4a2e473c%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C637903859877328935%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rEpxu8i9zllVpThgVYI%2Bkpq0Kz9Ab%2FCpp%2BOLP%2Bdylb0%3D&reserved=0 -----Original Message----- From: Code for Libraries <CODE4LIB@LISTS.CLIR.ORG> On Behalf Of charles meyer Sent: Thursday, June 9, 2022 11:35 AM To: CODE4LIB@LISTS.CLIR.ORG Subject: [EXT] [CODE4LIB] List Names - sub-folders names Hi All, This task used to be a lot easier in XP. In W10, I'm trying to print a list of sub-folder names in a folder. I'm not interested in the folder or sub-folder contents nor the files contents, just the file names. Googling resulted in just results to print the folder contents or the files contents but not just the sub-folder names. Have you had to buy a commercial program to do that? I'm hoping there's a solution besides some DOS line command option! Thank you! Charles. Charles Meyer Charlotte County Public Library Port Charlotte, FL