pathlib — the file API AI should reach for first — step 6 of 9
Cursor wrote string concatenation to build a path. It works on Linux and macOS by accident, but it's the wrong shape — and on Windows it would join with the wrong separator entirely.
Replace lines 5 and 6 so they use a single Path object built with
the / operator. The output should be the file's contents:
hello.
The break is on lines 5, 6 — but read the whole snippet first.
⌘↵ runs the editor.read, then continue.
Cursor wrote string concatenation to build a path. It works on Linux and macOS by accident, but it's the wrong shape — and on Windows it would join with the wrong separator entirely.
Replace lines 5 and 6 so they use a single Path object built with
the / operator. The output should be the file's contents:
hello.
The break is on lines 5, 6 — but read the whole snippet first.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.