public interface DirectoryEntrySync extends EntrySync
The DirectoryEntry
interface of the FileSystem API represents a directory in a file system.
Modifier and Type | Method and Description |
---|---|
DirectoryReaderSync |
createReader()
Creates a new DirectoryReader to read entries from this Directory.
|
DirectoryEntrySync |
getDirectory(String path,
Object flags)
Creates or looks up a directory.
|
FileEntrySync |
getFile(String path,
Object flags)
Creates or looks up a file.
|
void |
removeRecursively()
Deletes a directory and all of its contents, if any.
|
copyTo, getFilesystem, getFullPath, getMetadata, getName, getParent, isDirectory, isFile, moveTo, remove, toURL
DirectoryReaderSync createReader()
Creates a new DirectoryReader to read entries from this Directory.
void getMetada ();
DirectoryReader
DirectoryEntrySync 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
FileEntrySync 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 removeRecursively()
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 © 2016. All rights reserved.