I'm trying to determine a file based on specific parameters. First, I am recursively iterating through a directory structure such as the following:
- C:/Users/programmer/Downloads/reviews/XBOX
- C:/Users/programmer/Downloads/reviews/PS3
- C:/Users/programmer/Downloads/reviews/GBA
Please notice the console game type at the end of the string. Following this, we have the following:
- C:/Users/programmer/Downloads/reviews/XBOX/p123.html
- C:/Users/programmer/Downloads/reviews/XBOX/r123.html
If you notice in the second section, there is one file that has a p and one that has an r.
My end goal is to determine which files are p* and which are r*, so my regular expression I'd like to be something of the following (pseudo-code)
/console/p*/
or
/console/r*/
In summary, I need to iterate through the files and know at the end of my function the filename AND the filetype (p or r) without caring about the console type. Thanks for the help