def METHOD_NAME(path):
    """Creates missing directories if not already present
    :param path: Path of the directory to create
    :type path: `str`
    :return:
    :rtype: None
    """
    # truncate filepath to 255 char (*nix limit)
    # See issue #521
    directory = path[:255]
    if os.path.isfile(directory):
        directory = os.path.dirname(directory)
    if not os.path.exists(directory):
        # Create any missing directories.
        FileOperations.make_dirs(directory)