AnalyzerFolder class

Constructors

AnalyzerFolder(FileSystem fileSystem, Directory directory, ResourceProvider provider)

Properties

changes Stream<WatchEvent>
Watch for changes to the files inside this folder (and in any nested folders, including folders reachable via links).
no setteroverride
directory Directory
final
exists bool
Return true if this resource exists.
no setteroverride
fileSystem → FileSystem
final
hashCode int
The hash code for this object.
no setterinherited
isRoot bool
Return true if this folder is a file system root.
no setteroverride
parent → Folder
Return the Folder that contains this resource, possibly itself if this resource is a root folder.
no setteroverride
parent2 → Folder
Return the Folder that contains this resource, possibly itself if this resource is a root folder.
no setteroverride
path String
Return the full path to this resource.
no setteroverride
provider → ResourceProvider
Return the ResourceProvider that owns this resource.
final
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 setteroverride

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.
override
contains(String path) bool
Return true if the path references a resource in this folder.
override
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.
override
delete() → void
Synchronously deletes this resource and its children.
override
getChild(String relPath) → Resource
Return an existing child Resource with the given relPath. Return a not existing File if no such child exist.
override
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.
override
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.
override
getChildren() List<Resource>
Return a list of existing direct children Resources (folders and files) in this folder, in no particular order.
override
isOrContains(String path) bool
Return true if absolute path references this resource or a resource in this folder.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
override
toString() String
A string representation of this object.
inherited
toUri() Uri
Return a Uri representing this resource.
override
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