def reset_downloads_folder():
if os.path.exists(downloads_path) and not os.listdir(downloads_path) == []:<EOL><INDENT>archived_downloads_folder = os.path.join(downloads_path, '<STR_LIT:..>',<EOL>ARCHIVE_DIR)<EOL>if not "<STR_LIT>".join(sys.argv) == "<STR_LIT:-c>":<EOL><INDENT>reset_downloads_folder_assistant(archived_downloads_folder)<EOL><DEDENT><DEDENT>
Clears the downloads folder.
        If settings.ARCHIVE_EXISTING_DOWNLOADS is set to True, archives it.