I have a path like so:
S:\Test\Testing\Tested\A\B\C
and a list
include = ['S:\Test\Testing',
'S:\Domino\Testing',
'S:\Money\tmp']
How do I check if the path I have starts with any of the paths in this list?
So in this case the first element would match and it would return True.
mypath.startswith(beginning+os.sep)?S:\Test\TestingfromS:\Test\Testing\Tested\A\B\C? Do you want to extract the path exactly three levels deep, or the one to the directory namedTestinghowever deep, or some other criteria?