promptdojo_

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.

full-screen editor opens — close anytime to keep reading.