Global Index
HTML5 JS API Index > File System API Tutorials & Specs

Entry

Extended by DirectoryEntry, FileEntry

An abstract interface representing entries in a file system, each of which may be a File or DirectoryEntry.

Properties
FileSystem
filesystem
The file system on which the entry resides.
DOMString
fullPath
The full absolute path from the root to the entry.
boolean
isDirectory
Entry is a directory.
boolean
isFile
Entry is a file.
DOMString
name
The name of the entry, excluding the path leading to it.
Operations
void
copyTo(DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback)
Copy an entry to a different location on the file system.
void
getMetadata(MetadataCallback successCallback, optional ErrorCallback errorCallback)
Look up metadata about this entry.
void
getParent(EntryCallback successCallback, optional ErrorCallback errorCallback)
Look up the parent DirectoryEntry containing this Entry. If this Entry is the root of its filesystem, its parent is itself. ParameterTypeNullableOptionalDescriptionsuccessCallbackEntryCallback✘✘ A callback that is called to return the parent Entry.
void
moveTo(DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback)
Move an entry to a different location on the file system.
void
remove(VoidCallback successCallback, optional ErrorCallback errorCallback)
Deletes a file or directory. It is an error to attempt to delete a directory that is not empty. It is an error to attempt to delete the root directory of a filesystem.
DOMString
toURL()
Returns a URL that can be used to identify this entry. Unlike the URN defined in [FILE-API-ED], it has no specific expiration; as it describes a location on disk, it should be valid at least as long as that location exists.
Referenced by
EntriesCallbackhandleEvent(...)
EntryCallbackhandleEvent(...)