Interface FileSystemDirectoryEntry
filesystem: FileSystem;
fullPath: string;
isDirectory: boolean;
isFile: boolean;
name: string;
createReader(): FileSystemDirectoryReader;
getDirectory(
path?: string | null,
options?: FileSystemFlags,
successCallback?: FileSystemEntryCallback,
errorCallback?: ErrorCallback,
): void;
getFile(
path?: string | null,
options?: FileSystemFlags,
successCallback?: FileSystemEntryCallback,
errorCallback?: ErrorCallback,
): void;
getParent(
successCallback?: FileSystemEntryCallback,
errorCallback?: ErrorCallback,
): void;
}
Hierarchy
- FileSystemEntry
- FileSystemDirectoryEntry (View Summary)
Index
Properties
Methods
Properties
Readonlyfilesystem
The read-only filesystem property of the FileSystemEntry interface contains a resides.
ReadonlyfullPath
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.
ReadonlyisDirectory
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.
ReadonlyisFile
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.
Readonlyname
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 FileSystemEntry.fullPath property).
Methods
createReader
The FileSystemDirectoryEntry interface's method
createReader()returns a the directory.Returns FileSystemDirectoryReader
getDirectory
- getDirectory(
path?: string | null,
options?: FileSystemFlags,
successCallback?: FileSystemEntryCallback,
errorCallback?: ErrorCallback,
): voidThe FileSystemDirectoryEntry interface's method
getDirectory()returns a somewhere within the directory subtree rooted at the directory on which it's called.Parameters
Optionalpath: string | nullOptionaloptions: FileSystemFlagsOptionalsuccessCallback: FileSystemEntryCallbackOptionalerrorCallback: ErrorCallback
Returns void
getFile
- getFile(
path?: string | null,
options?: FileSystemFlags,
successCallback?: FileSystemEntryCallback,
errorCallback?: ErrorCallback,
): voidThe FileSystemDirectoryEntry interface's method
getFile()returns a within the directory subtree rooted at the directory on which it's called.Parameters
Optionalpath: string | nullOptionaloptions: FileSystemFlagsOptionalsuccessCallback: FileSystemEntryCallbackOptionalerrorCallback: ErrorCallback
Returns void
getParent
The FileSystemEntry interface's method
getParent()obtains ajs-nolint getParent(successCallback, errorCallback) getParent(successCallback)-successCallback- : A function which is called when the parent directory entry has been retrieved.Parameters
OptionalsuccessCallback: FileSystemEntryCallbackOptionalerrorCallback: ErrorCallback
Returns void
The
FileSystemDirectoryEntryinterface of the File and Directory Entries API represents a directory in a file system.MDN Reference