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.

By

Updated

Cheat sheet: Paths and Folders
Category
Node.js
Level
Apprentice
Tags
Absolute Path (operating-system), Current Directory, JavaScript, nodejs, path Module, Relative Path (operating-system)