* Skip to main content 
  * Skip to search 
  * Skip to select language 

[ MDN Web Docs  ](/en-US/) Open main menu

  * References  [ References ](/en-US/docs/Web)
    * [ Overview / Web Technology  Web technology reference for developers  ](/en-US/docs/Web)
    * [ HTML  Structure of content on the web  ](/en-US/docs/Web/HTML)
    * [ CSS  Code used to describe document style  ](/en-US/docs/Web/CSS)
    * [ JavaScript  General-purpose scripting language  ](/en-US/docs/Web/JavaScript)
    * [ HTTP  Protocol for transmitting web resources  ](/en-US/docs/Web/HTTP)
    * [ Web APIs  Interfaces for building web applications  ](/en-US/docs/Web/API)
    * [ Web Extensions  Developing extensions for web browsers  ](/en-US/docs/Mozilla/Add-ons/WebExtensions)
    * [ Web Technology  Web technology reference for developers  ](/en-US/docs/Web)
  * Guides  [ Guides ](/en-US/docs/Learn)
    * [ Overview / MDN Learning Area  Learn web development  ](/en-US/docs/Learn)
    * [ MDN Learning Area  Learn web development  ](/en-US/docs/Learn)
    * [ HTML  Learn to structure web content with HTML  ](/en-US/docs/Learn/HTML)
    * [ CSS  Learn to style content using CSS  ](/en-US/docs/Learn/CSS)
    * [ JavaScript  Learn to run scripts in the browser  ](/en-US/docs/Learn/JavaScript)
    * [ Accessibility  Learn to make the web accessible to all  ](/en-US/docs/Web/Accessibility)
  * Plus  [ Plus ](/en-US/plus)
    * [ Overview  A customized MDN experience  ](/en-US/plus)
    * [ AI Help (beta)  Get real-time assistance and support  ](/en-US/plus/ai-help)
    * [ Updates  All browser compatibility updates at a glance  ](/en-US/plus/updates)
    * [ Documentation  Learn how to use MDN Plus  ](/en-US/plus/docs/features/overview)
    * [ FAQ  Frequently asked questions about MDN Plus  ](/en-US/plus/docs/faq)
  * [ Curriculum  New  ](/en-US/curriculum/)
  * [ Blog ](/en-US/blog/)
  * [ Play ](/en-US/play)
  * [ AI Help  Beta  ](/en-US/plus/ai-help)

Search MDN  Clear search input  Search

Theme

  * [ Log in ](/users/fxa/login/authenticate/?next=%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile_and_Directory_Entries_API)
  * [ Sign up for free  ](/users/fxa/login/authenticate/?next=%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFile_and_Directory_Entries_API)

  1. [ References  ](/en-US/docs/Web)
  2. [ Web APIs  ](/en-US/docs/Web/API)
  3. [ File and Directory Entries API  ](/en-US/docs/Web/API/File_and_Directory_Entries_API)

Article Actions

  * English (US) 

Filter sidebar  Clear filter input

##  In this article

  * Getting access to a file system 
  * Interfaces 
  * Specifications 
  * Browser compatibility 
  * See also 

  1. _[ File and Directory Entries API ](/en-US/docs/Web/API/File_and_Directory_Entries_API) _
  2. Guides 
    1. [ Introduction to the File and Directory Entries API ](/en-US/docs/Web/API/File_and_Directory_Entries_API/Introduction)
    2. [ File and Directory Entries API support in Firefox ](/en-US/docs/Web/API/File_and_Directory_Entries_API/Firefox_support)
  3. Interfaces 
    1. [ ` FileSystemDirectoryEntry ` ](/en-US/docs/Web/API/FileSystemDirectoryEntry)
    2. [ ` FileSystemDirectoryReader ` ](/en-US/docs/Web/API/FileSystemDirectoryReader)
    3. [ ` FileSystemEntry ` ](/en-US/docs/Web/API/FileSystemEntry)
    4. [ ` FileSystemFileEntry ` ](/en-US/docs/Web/API/FileSystemFileEntry)
    5. [ ` FileSystem ` ](/en-US/docs/Web/API/FileSystem)

##  In this article

  * Getting access to a file system 
  * Interfaces 
  * Specifications 
  * Browser compatibility 
  * See also 

#  File and Directory Entries API

The File and Directory Entries API simulates a local file system that web apps
can navigate within and access files in. You can develop apps which read,
write, and create files and/or directories in a virtual, sandboxed file
system.

##  Getting access to a file system

There are two ways to get access to file systems defined in the current
specification draft:

  * When handling a [ ` drop ` ](/en-US/docs/Web/API/HTMLElement/drop_event "drop