0PricingLogin
Electron Desktop App Development · Lesson

File System Access

Learn to read, write, and manipulate files and directories directly on the user's system using Node.js `fs` module from the main process.

Accessing Local Files

Electron apps can do more than web pages. They can interact directly with the user's computer, including its file system!

This lesson explores how to read, write, and manage files and directories using Node.js's fs module.

Node.js `fs` Module Explained

The fs (File System) module is a core Node.js feature. It provides methods to interact with the file system.

  • Reading Files: Get content from existing files.
  • Writing Files: Create new files or update existing ones.
  • Managing Directories: Create, delete, or list folders.

It's your gateway to persistent local data.

All lessons in this course

  1. Local Storage & IndexedDB
  2. File System Access
  3. Embedded Databases with SQLite
← Back to Electron Desktop App Development