Python Forum
Finding directory based on wildcard?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding directory based on wildcard?
#1
Hi.

I'm trying to create a function that will return a (windows) directory based on a wildcard.

For instance, my starting directory is C:\users\auser, and I would like to search through all (sub) directories under this directory and return any directory names that contain '*gain*' in the directory name.

Any advice would be appreciated.

Thanks.
Reply


Messages In This Thread
Finding directory based on wildcard? - by jkimrey - Apr-24-2018, 01:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding the price based on industry and number of transactions chandramouliarun 0 958 Jul-26-2022, 07:36 PM
Last Post: chandramouliarun
  Reading Excel file and use a wildcard in file name and sheet name randolphoralph 6 7,516 Jan-13-2022, 10:20 PM
Last Post: randolphoralph
  pymongo wildcard query issue MikeAW2010 2 4,355 Jul-06-2021, 09:25 AM
Last Post: swag
  python script to get wildcard mask output in the following format techrichit 0 3,888 Aug-10-2018, 11:01 PM
Last Post: techrichit
  Problem with assigning directory of a file based on cell name mmaz67 3 2,897 Jul-04-2018, 08:40 AM
Last Post: Larz60+
  sqlite3 wildcard use problems lusticus 1 3,173 Apr-11-2018, 08:22 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020