def setup_custom_folder(tmpdir_factory):
    """Create a folder to represent user's custom static folder"""
    # user has his custom static folder
    # put this icons or images in it
    tmp_folder = tmpdir_factory.mktemp("my_static")

    # create a file in base dir
    tmp_folder.join("add_line.svg").ensure()
    # create a sub folder and a file in the sub folder
    tmp_folder.join("sub_folder", "sub_file.png").ensure()
    return tmp_folder