# Paths and Folders

A relative path starts from the terminal's folder, not the script's, so a Node program finds its own files with path.join and import.meta.dirname, and lists and makes folders with readdir and mkdir.

![Cheat sheet: Paths and Folders](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a2f379f4d7884f999b1a59f6912192be.webp)

- Category: Node.js
- Level: Apprentice
- Tags: Absolute Path (operating-system), Current Directory, JavaScript, nodejs, path Module, Relative Path (operating-system)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-files-paths-and-folders-cheat-sheet
