Now on Omarchy: read the manual without leaving your desktop
Your code Python
# clean_files should drop every .bak file before upload. One of them survives.
def clean_files(files):
    for f in files:
        if f.endswith(".bak"):
            files.remove(f)
    return files

print(clean_files(["app.js", "app.js.bak", "index.html", "logo.png", "notes.txt.bak", "styles.css.bak"]))