Get your API key

Lesson 1 of 5

Files, folders and paths

What a file extension is, how a path works on Windows, Mac and Linux, and what ~, . and .. mean.

7 min Free
One step at a time, like flipping pages.

By the end of this lesson you will read any file path the AI gives you, on Windows, Mac or Linux, and know exactly which folder it points to.

You need: your laptop and its file manager (File Explorer on Windows, Finder on Mac, Files on Linux) · Time: 7 minutes

  1. A coding agent does not build "an app" in the air. It writes files (single documents, like index.html or notes.txt) inside a folder (a box that holds files and other folders). Your whole project is one folder.

    So the agent will say things like "open src/app/page.tsx" or "run this in the project folder". If you know how files, folders and paths work, those sentences stop being scary and start being directions.

    Think of your laptop like a big almirah: the disk is the almirah, folders are the shelves and boxes, files are the papers inside. A path is the note that says "almirah → second shelf → blue box → fees receipt".

    Why?

    Most "it did not work" moments for beginners are really "it ran in the wrong folder". Knowing where a file lives fixes them before they happen.