An abstract interface representing entries in a file system, each of
which may be a File or DirectoryEntry.
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.
|