---
title: "FileSystemEntry | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface FileSystemEntry

The **`FileSystemEntry`** interface of the File and Directory Entries API represents a single entry in a file system. The entry can be a file or a directory (directories are represented by the FileSystemDirectoryEntry interface). It includes methods for working with files—including copying, moving, removing, and reading files—as well as information about a file it points to—including the file name and its path from the root to the entry.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry)

interface FileSystemEntry {  
    [filesystem](#filesystem): [FileSystem](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FileSystem/);  
    [fullPath](#fullpath): string;  
    [isDirectory](#isdirectory): boolean;  
    [isFile](#isfile): boolean;  
    [name](#name): string;  
    [getParent](#getparent-1)(  
        successCallback?: [FileSystemEntryCallback](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FileSystemEntryCallback/),  
        errorCallback?: [ErrorCallback](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ErrorCallback/),  
    ): void;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.FileSystemEntry))

-   FileSystemEntry
    -   [FileSystemDirectoryEntry](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FileSystemDirectoryEntry/)

##### Index

### Properties[](#properties)

[filesystem](#filesystem) [fullPath](#fullpath) [isDirectory](#isdirectory) [isFile](#isfile) [name](#name)

### Methods[](#methods)

[getParent](#getparent)

## Properties[](#properties-1)

### `Readonly`filesystem[](#filesystem)

filesystem: [FileSystem](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FileSystem/)

The read-only **`filesystem`** property of the FileSystemEntry interface contains a FileSystem object that represents the file system on which the entry resides.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem)

### `Readonly`fullPath[](#fullpath)

fullPath: string

The read-only **`fullPath`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system's root to the file represented by the entry.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath)

### `Readonly`isDirectory[](#isdirectory)

isDirectory: boolean

The read-only **`isDirectory`** property of the FileSystemEntry interface is true if the entry represents a directory (meaning it's a FileSystemDirectoryEntry) and false if it's not.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory)

### `Readonly`isFile[](#isfile)

isFile: boolean

The read-only **`isFile`** property of the FileSystemEntry interface is true if the entry represents a file (meaning it's a FileSystemFileEntry) and false if it's not.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile)

### `Readonly`name[](#name)

name: string

The read-only **`name`** property of the FileSystemEntry interface returns a string specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the fullPath property).

[MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name)

## Methods[](#methods-1)

### getParent[](#getparent)

-   getParent(  
        successCallback?: [FileSystemEntryCallback](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FileSystemEntryCallback/),  
        errorCallback?: [ErrorCallback](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ErrorCallback/),  
    ): void[](#getparent-1)
    
    The FileSystemEntry interface's method **`getParent()`** obtains a FileSystemDirectoryEntry.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent)
    
    #### Parameters
    
    -   `Optional`successCallback: [FileSystemEntryCallback](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FileSystemEntryCallback/)
    -   `Optional`errorCallback: [ErrorCallback](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ErrorCallback/)
    
    #### Returns void
