DirectoryEntry class
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- Entry
- DirectoryEntry
- Annotations
- @DomName('DirectoryEntry')
- @Experimental()
Static Properties
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
Constructors
Properties
- filesystem → FileSystem @DocsEditable(), @DomName('Entry.filesystem'), read-only, inherited
- fullPath → String @DocsEditable(), @DomName('Entry.fullPath'), read-only, inherited
- hashCode → int read-only, inherited
- isDirectory → bool @DocsEditable(), @DomName('Entry.isDirectory'), read-only, inherited
- isFile → bool @DocsEditable(), @DomName('Entry.isFile'), read-only, inherited
- name → String @DocsEditable(), @DomName('Entry.name'), read-only, inherited
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- createDirectory(
String path, { bool exclusive: false }) → Future<Entry> -
Create a new directory with the specified
path
. Ifexclusive
is true, the returned Future will complete with an error if a directory already exists with the specifiedpath
. - createFile(
String path, { bool exclusive: false }) → Future<Entry> -
Create a new file with the specified
path
. Ifexclusive
is true, the returned Future will complete with an error if a file already exists at the specifiedpath
. - createReader(
) → DirectoryReader @DocsEditable(), @DomName('DirectoryEntry.createReader') - getDirectory(
String path) → Future<Entry> -
Retrieve an already existing directory entry. The returned future will result in an error if a directory at
path
does not exist or if the item atpath
is not a directory. - getFile(
String path) → Future<Entry> -
Retrieve an already existing file entry. The returned future will result in an error if a file at
path
does not exist or if the item atpath
is not a file. - removeRecursively(
) → Future - copyTo(
DirectoryEntry parent, { String name }) → Future<Entry> inherited - getMetadata(
) → Future<Metadata> inherited - getParent(
) → Future<Entry> inherited - moveTo(
DirectoryEntry parent, { String name }) → Future<Entry> inherited - noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- remove(
) → Future inherited - toString(
) → String inherited -
Returns the result of the JavaScript objects
toString
method. - toUrl(
) → String @DocsEditable(), @DomName('Entry.toURL'), inherited
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/DirectoryEntry-class.html