I am trying to figure out how to check (using preferably os module) if one directory contains another directory named "xyz". I have found this solutions: How to check if folder is empty with Python? yet I don't need to check if dir is empty or not, I need to check if dir has another dir and name must be correct ("xyz"). Also, I tried to find something in os documentation https://docs.python.org/3/library/os.html but I didn't come up with a solution.