python When you open a file with a sub-directory in the path that does not exist, both the sub-directory and the file will be created. code example
Example: how to make all my files to work together in python
>>> import os
>>> entries = os.listdir('my_directory/')