DirectoryEntry class

Annotated by:
  • DomName('DirectoryEntry')
  • Experimental()
Extends:

Instance Properties

filesystem FileSystem Inherited
read-only
fullPath String Inherited
read-only
isDirectory bool Inherited
read-only
isFile bool Inherited
read-only
name String Inherited
read-only

Instance Methods

createDirectory ( String path, {bool exclusive: false} ) → Future<Entry>
Create a new directory with the specified path. If exclusive is true, the returned Future will complete with an error if a directory already exists with the specified path.
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 at path is not a directory.
createFile ( String path, {bool exclusive: false} ) → Future<Entry>
Create a new file with the specified path. If exclusive is true, the returned Future will complete with an error if a file already exists at the specified path.
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 at path is not a file.
createReader ( ) → DirectoryReader
removeRecursively ( ) → Future
copyTo Inherited ( DirectoryEntry parent, {String name} ) → Future<Entry>
getMetadata Inherited ( ) → Future<Metadata>
getParent Inherited ( ) → Future<Entry>
moveTo Inherited ( DirectoryEntry parent, {String name} ) → Future<Entry>
remove Inherited ( ) → Future
toUrl Inherited ( ) → String