directory
A folder: a named container in a filesystem that holds files and other directories.
In more detail
Directories nest into a tree that starts at the root, / on Linux and macOS. A path such as /home/ada/notes.txt names each directory on the way to a file.
Related terms
- filesystem — The way an operating system organises files and folders on a disk or in memory.
- fs.readdir() — The Node.js function that lists the entries of a directory, optionally with their types and optionally including every subdirectory.
- path — The location of a file or folder written as the folders leading to it, such as /home/ana/notes.txt or C:\Users\ana\notes.txt.
- current working directory — The directory a shell or process is standing in, where any relative path or bare file name is looked up.
- pathlib — Python's standard library module for working with file paths as objects rather than plain strings.
Taught in
- Asynchronous File I/O: node:fs/promises & Handles — Node.js Internals & Backend Services
- Directory Traversal: Recursive Readdir & fs.watch — Node.js Internals & Backend Services
- How Python Runs Your Code — Hands-on Python: Complete Video Course & Book
- Editors, IDEs And Shells — Hands-on Python: Complete Video Course & Book
- Installing Python On Windows — Hands-on Python: Complete Video Course & Book
- Your Python Folder And A First Program — Hands-on Python: Complete Video Course & Book
- Windows And Mac Specifics — Hands-on Python: Complete Video Course & Book
- Packages, And Your Own Library — Hands-on Python: Complete Video Course & Book