Folder class abstract

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

Implemented types
Available extensions

Constructors

Folder()

Properties

exists → bool
Return true if this resource exists.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isRoot → bool
Return true if this folder is a file system root.
no setter
parent → Folder
Return the Folder that contains this resource, possibly itself if this resource is a root folder.
no setterinherited
path → String
Return the full path to this resource.
no setterinherited
provider → ResourceProvider
Return the ResourceProvider that owns this resource.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortName → String
Return a short version of the name that can be displayed to the user to denote this resource.
no setterinherited
withAncestors → Iterable<Folder>

Available on Folder, provided by the FolderExtension extension

Return this folder and all its ancestors.
no setter

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.
getChildAssumingFile(String relPath) → File
Return a File representing a child at the given relPath.
getChildAssumingFolder(String relPath) → Folder
Return a Folder representing a child at the given relPath.
getChildren() → List<Resource>
Return a list of existing direct children Resources (folders and files) in this folder, in no particular order.
getFile(String relPath) → File
Return a File representing a child at the given relPath.
getFolder(String relPath) → Folder
Return a Folder representing a child at the given relPath.
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 nonexistent method or property is accessed.
inherited
relativeIfContains(String path) → String?

Available on Folder, provided by the FolderExtension extension

Return a relative path if the path references a resource in this folder, or null if it doesn't.
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
A string representation of this object.
inherited
toUri() → Uri
Return a Uri representing this resource.
inherited
watch() → ResourceWatcher
Watch for changes to the files inside this folder (and in any nested folders, including folders reachable via links).
override

Operators

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