AbstractFileManager class

Implementers

Constructors

AbstractFileManager(Environment environment)

Properties

environment Environment
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

alwaysMakePathsAbsolute() → bool
Whether the rootpath should be converted to be absolute. Only for browser compatibility
existSync(String filename, String currentDirectory, Contexts options, Environment environment) FileLoaded
Check if filename exists in the include paths
extractUrlParts(String url, [ String baseUrl ]) UrlParts
getPath(String filename) → String
Given the full path to a file filename, return the path component
isPathAbsolute(String path) → bool
Returns whether a path is absolute
join(String basePath, String laterPath) → String
Joins together 2 paths
loadFile(String filename, String currentDirectory, Contexts options, Environment environment) → Future<FileLoaded>
Loads a file asynchronously. Expects a Future that either rejects with an error or fulfills with an object containing { filename: - full resolved path to file contents: - the contents of the file, as a string }
loadFileSync(String filename, String currentDirectory, Contexts options, Environment environment) FileLoaded
Loads a file synchronously. Expects an immediate return with an object containing { error: - error object if an error occurs filename: - full resolved path to file contents: - the contents of the file, as a string or codeunits: - the contents of the file, asBytes }
normalizeFilePath(String filename) → Future<String>
Normalizes file path. Basically does nothing, to be overridden in child managers
pathDiff(String url, String baseUrl) → String
Returns the difference between 2 paths to create a relative path [...]
supports(String filename, String currentDirectory, Contexts options, Environment environment) → bool
This FileManager can load async the filename
supportsSync(String filename, String currentDirectory, Contexts options, Environment environment) → bool
Returns whether this file manager supports this file for syncronous file retrieval If true is returned, loadFileSync will then be called with the file.
tryAppendExtension(String path, String ext) → String
Append a ext extension to path if appropriate.
tryAppendLessExtension(String path) → String
Append a .less extension to path if appropriate. Only called if less thinks one could be added.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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