def smkdirs(dpath, mode=<NUM_LIT>):
if not os.path.exists(dpath):<EOL><INDENT>os.makedirs(dpath, mode=mode)<EOL><DEDENT>
Safely make a full directory path if it doesn't exist.

    Parameters
    ----------
    dpath : str
        Path of directory/directories to create

    mode : int [default=0777]
        Permissions for the new directories

    See also
    --------
    os.makedirs