os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
Windows File Explorer hasn’t really changed in years. Sure, Windows 11 gave it a slight facelift with rounded corners, a more modern toolbar, and some subtle visual tweaks, but underneath, it’s still ...