The FileSystemFileEntry interface of the File System API represents a file in a file system. It offers properties describing the file's attributes, as well as the file() method, which creates a File object that can be used to read the file.

Documentation FileSystemFileEntry by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Methods

file(successCallback:File ‑> Void, ?errorCallback:DOMException ‑> Void):Void

file(successCallback:Function, ?errorCallback:Function):Void

file(successCallback:FileCallback, ?errorCallback:ErrorCallback):Void

Inherited Variables

Defined by FileSystemEntry

read onlyfilesystem:FileSystem

A FileSystem object representing the file system in which the entry is located.

read onlyfullPath:String

A USVString object which provides the full, absolute path from the file system's root to the entry; it can also be thought of as a path which is relative to the root directory, prepended with a "/" character.

read onlyisDirectory:Bool

A Boolean which is true if the entry represents a directory; otherwise, it's false.

read onlyisFile:Bool

A Boolean which is true if the entry represents a file. If it's not a file, this value is false.

read onlyname:String

A USVString containing the name of the entry (the final part of the path, after the last "/" character).

Inherited Methods

Defined by FileSystemEntry

getParent(?successCallback:FileSystemEntry ‑> Void, ?errorCallback:DOMException ‑> Void):Void

getParent(?successCallback:Function, ?errorCallback:Function):Void

getParent(?successCallback:FileSystemEntryCallback, ?errorCallback:ErrorCallback):Void