public class JsEntrySync extends JsElementalMixinBase implements EntrySync
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsEntrySync() |
Modifier and Type | Method and Description |
---|---|
JsEntrySync |
copyTo(DirectoryEntrySync parent,
String name)
Copy an entry to a different location on the file system.
|
JsDOMFileSystemSync |
getFilesystem() |
String |
getFullPath() |
JsMetadata |
getMetadata()
Look up metadata about this entry.
|
String |
getName() |
JsEntrySync |
getParent()
Look up the parent
DirectoryEntry containing this entry. |
boolean |
isDirectory() |
boolean |
isFile() |
JsEntrySync |
moveTo(DirectoryEntrySync parent,
String name)
Move an entry to a different location on the file system.
|
void |
remove()
Deletes a file or directory.
|
String |
toURL()
Returns a URL that can be used to identify this entry.
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final JsDOMFileSystemSync getFilesystem()
getFilesystem
in interface EntrySync
public final String getFullPath()
getFullPath
in interface EntrySync
public final boolean isDirectory()
isDirectory
in interface EntrySync
public final JsEntrySync copyTo(DirectoryEntrySync parent, String name)
EntrySync
Copy an entry to a different location on the file system. You cannot copy an entry inside itself if it is a directory nor can you copy it into its parent if a name different from its current one isn't provided. Directory copies are always recursive—that is, they copy all contents of the directory.
void vopyTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
public final JsMetadata getMetadata()
EntrySync
Look up metadata about this entry.
void getMetada ( in MetadataCallback ErrorCallback );
void
getMetadata
in interface EntrySync
public final JsEntrySync getParent()
EntrySync
Look up the parent DirectoryEntry
containing this entry. If this entry is the root of its filesystem, its parent is itself.
void getParent ( (in EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
public final JsEntrySync moveTo(DirectoryEntrySync parent, String name)
EntrySync
Move an entry to a different location on the file system. You cannot do the following:
Moving a file over an existing file replaces that existing file. A move of a directory on top of an existing empty directory replaces that directory.
void moveTo ( (in DirectoryEntry parent, optional DOMString newName, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
public final void remove()
EntrySync
Deletes a file or directory. You cannot delete an empty directory or the root directory of a filesystem.
void remove ( (in VoidCallback successCallback, optional ErrorCallback errorCallback); );
void
public final String toURL()
EntrySync
Returns a URL that can be used to identify this entry. It has no specific expiration. Bcause it describes a location on disk, it is valid for as long as that location exists. Users can supply mimeType
to simulate the optional mime-type header associated with HTTP downloads.
DOMString toURL ( (in optional DOMString mimeType); );
DOMString
Copyright © 2018. All rights reserved.