def METHOD_NAME(save_dir, sleep_time):
    if not os.path.isfile("url_name.txt"):
        return
    with open("url_name.txt", "r") as input_file:
        for line in input_file:
            if not line.isspace():
                save_dir2 = save_dir
                line_list = line.split(", ")
                print(line_list)
                try:
                    url_2 = line_list[0]
                    file_name = line_list[1].replace("-", "_")
                    year_folder = line_list[2].rstrip() + "/"
                    # year_folder = year_folder
                    print("Year_folder: " + year_folder)
                except IndexError:
                    print(line_list)
                    pass
                if not os.path.exists(save_dir + year_folder.strip("\n")):
                    os.makedirs(save_dir + year_folder.strip("\n"))
                save_dir2 = save_dir + year_folder
                if os.path.exists(save_dir2 + file_name) == False:
                    pdf = urllib.request.urlopen(url_2)
                    with open(save_dir2 + file_name + ".pdf", "wb") as file:
                        file.write(pdf.read())
                    file.close()
                time.sleep(sleep_time)
                print("Sleep")
        input_file.close()
        # os.remove("url_name.txt")