jams.util.
smkdirs
Safely make a full directory path if it doesn’t exist.
Path of directory/directories to create
Permissions for the new directories
See also
os.makedirs