def store_recent_file(path):
    """Verify if path is on recent files and add it.

    Parameters
    ==========
    path (pathlib.Path instance)
        represents path being stored as recent file.
    """
    ### if file with list of recent files don't exist,
    ### create the list yourself

    try:
        recent_paths = load_pyl(RECENT_FILES)
    except FileNotFoundError:
        recent_paths = []

    ### turn path into string
    str_path = str(path)

    ### remove path from list if it is already present

    try:
        recent_paths.remove(str_path)
    except ValueError:
        pass

    ### finally, insert path at the beginning of the list
    ### and save the list back in the path dedicated to
    ### the "recent files" json file

    recent_paths.insert(0, str(path))
    save_pyl(recent_paths, RECENT_FILES)
Verify if path is on recent files and add it.

    Parameters
    ==========
    path (pathlib.Path instance)
        represents path being stored as recent file.
    
nodezator/recentfile.py