public interface DirectoryEntry extends Entry
The DirectoryEntry
interface of the FileSystem API represents a directory in a file system.
Modifier and Type | Method and Description |
---|---|
DirectoryReader |
createReader()
Creates a new DirectoryReader to read entries from this Directory.
|
void |
getDirectory(String path)
Creates or looks up a directory.
|
void |
getDirectory(String path,
Object flags)
Creates or looks up a directory.
|
void |
getDirectory(String path,
Object flags,
EntryCallback successCallback)
Creates or looks up a directory.
|
void |
getDirectory(String path,
Object flags,
EntryCallback successCallback,
ErrorCallback errorCallback)
Creates or looks up a directory.
|
void |
getFile(String path)
Creates or looks up a file.
|
void |
getFile(String path,
Object flags)
Creates or looks up a file.
|
void |
getFile(String path,
Object flags,
EntryCallback successCallback)
Creates or looks up a file.
|
void |
getFile(String path,
Object flags,
EntryCallback successCallback,
ErrorCallback errorCallback)
Creates or looks up a file.
|
void |
removeRecursively(VoidCallback successCallback)
Deletes a directory and all of its contents, if any.
|
void |
removeRecursively(VoidCallback successCallback,
ErrorCallback errorCallback)
Deletes a directory and all of its contents, if any.
|
copyTo, copyTo, copyTo, copyTo, getFilesystem, getFullPath, getMetadata, getMetadata, getName, getParent, getParent, getParent, isDirectory, isFile, moveTo, moveTo, moveTo, moveTo, remove, remove, toURL
DirectoryReader createReader()
Creates a new DirectoryReader to read entries from this Directory.
void getMetada ();
DirectoryReader
void getDirectory(String path)
Creates or looks up a directory.
void vopyTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getDirectory(String path, Object flags)
Creates or looks up a directory.
void vopyTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getDirectory(String path, Object flags, EntryCallback successCallback)
Creates or looks up a directory.
void vopyTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getDirectory(String path, Object flags, EntryCallback successCallback, ErrorCallback errorCallback)
Creates or looks up a directory.
void vopyTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getFile(String path)
Creates or looks up a file.
void moveTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getFile(String path, Object flags)
Creates or looks up a file.
void moveTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getFile(String path, Object flags, EntryCallback successCallback)
Creates or looks up a file.
void moveTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void getFile(String path, Object flags, EntryCallback successCallback, ErrorCallback errorCallback)
Creates or looks up a file.
void moveTo ( (in DOMString path, optional Flags options, optional EntryCallback successCallback, optional ErrorCallback errorCallback); );
void
void removeRecursively(VoidCallback successCallback)
Deletes a directory and all of its contents, if any. If you are deleting a directory that contains a file that cannot be removed, some of the contents of the directory might be deleted. You cannot delete the root directory of a file system.
DOMString toURL ( (in VoidCallback successCallback, optional ErrorCallback errorCallback); );
void
void removeRecursively(VoidCallback successCallback, ErrorCallback errorCallback)
Deletes a directory and all of its contents, if any. If you are deleting a directory that contains a file that cannot be removed, some of the contents of the directory might be deleted. You cannot delete the root directory of a file system.
DOMString toURL ( (in VoidCallback successCallback, optional ErrorCallback errorCallback); );
void
Copyright © 2018. All rights reserved.