Folder class

Folders are Resources which may contain files and/or other folders.

Implemented types

Constructors

Folder()

Properties

changes Stream<WatchEvent>
Watch for changes to the files inside this folder (and in any nested folders, including folders reachable via links).
read-only
exists bool
Return true if this resource exists.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
parent Folder
Return the Folder that contains this resource, or null if this resource is a root folder.
read-only, inherited
path String
Return the full path to this resource.
read-only, inherited
provider ResourceProvider
Return the ResourceProvider that owns this resource.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shortName String
Return a short version of the name that can be displayed to the user to denote this resource.
read-only, inherited

Methods

canonicalizePath(String path) String
If the path path is a relative path, convert it to an absolute path by interpreting it relative to this folder. If it is already an absolute path, then don't change it. [...]
contains(String path) bool
Return true if the path references a resource in this folder. [...]
copyTo(Folder parentFolder) Folder
Copy this resource to a child of the parentFolder with the same kind and shortName as this resource. If this resource is a folder, then all of the contents of the folder will be recursively copied. [...]
override
create() → void
If this folder does not already exist, create it.
delete() → void
Synchronously deletes this resource and its children. [...]
inherited
getChild(String relPath) Resource
Return an existing child Resource with the given relPath. Return a not existing File if no such child exist.
getChildAssumingFile(String relPath) File
Return a File representing a child Resource with the given relPath. This call does not check whether a file with the given name exists on the filesystem - client must call the File's exists getter to determine whether the folder actually exists.
getChildAssumingFolder(String relPath) Folder
Return a Folder representing a child Resource with the given relPath. This call does not check whether a folder with the given name exists on the filesystem--client must call the Folder's exists getter to determine whether the folder actually exists.
getChildren() List<Resource>
Return a list of existing direct children Resources (folders and files) in this folder, in no particular order. [...]
isOrContains(String path) bool
Return true if absolute path references this resource or a resource in this folder. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resolveSymbolicLinksSync() Resource
Return a resource that refers to the same resource as this resource, but whose path does not contain any symbolic links.
inherited
toString() String
Returns a string representation of this object.
inherited
toUri() Uri
Return a Uri representing this resource.
inherited

Operators

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