Directory class abstract

Abstract directory.

Inheritance
Implementers

Constructors

Directory(String path)
Creates a Directory object.
factory

Properties

absolute Directory
Returns a Directory instance whose path is the absolute path to this.
no setter
fs FileSystem
fs_shim specific holds a reference to the file system
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAbsolute bool
Returns a bool indicating whether this object's path is absolute.
no setterinherited
parent Directory
The directory containing this. If this is a root directory, returns this.
no setterinherited
path String
Get the path of the file.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({bool recursive = false}) Future<Directory>
Creates the directory with this name.
delete({bool recursive = false}) Future<FileSystemEntity>
Deletes this FileSystemEntity.
inherited
exists() Future<bool>
Checks whether the file system entity with this path exists. Returns a Future<bool> that completes with the result.
inherited
list({bool recursive = false, bool followLinks = true}) Stream<FileSystemEntity>
Lists the sub-directories and files of this Directory. Optionally recurses into sub-directories.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rename(String newPath) Future<FileSystemEntity>
Renames this file system entity. Returns a Future<FileSystemEntity> that completes with a FileSystemEntity instance for the renamed file system entity.
inherited
stat() Future<FileStat>
Calls the operating system's stat() function on the path of this FileSystemEntity. Identical to FileStat.stat(this.path).
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

current Directory
Creates a directory object pointing to the current working directory.
no setter