ReaderCollectionPrioritized

@ui5/fs. ReaderCollectionPrioritized

Prioritized Resource Locator Collection

Constructor

new ReaderCollectionPrioritized(parameters)

Source:
The constructor.
Parameters:
Name Type Description
parameters object
Properties
Name Type Description
name string The collection name
readers Array.<module:@ui5/fs.AbstractReader> Prioritized list of resource readers (first is tried first)

Extends

Methods

byGlob(virPattern, optionsopt) → {Promise.<Array.<module:@ui5/fs.Resource>>}

Source:
Overrides:
Locates resources by matching glob patterns.
Example
byGlob("**‏/*.{html,htm}");
byGlob("**‏/.library");
byGlob("/pony/*");
Parameters:
Name Type Attributes Description
virPattern string | Array.<string> glob pattern as string or array of glob patterns for virtual directory structure
options object <optional>
glob options
Properties
Name Type Attributes Default Description
nodir boolean <optional>
true Do not match directories
Returns:
Promise resolving to list of resources
Type
Promise.<Array.<module:@ui5/fs.Resource>>

byPath(virPath, optionsopt) → {Promise.<module:@ui5/fs.Resource>}

Source:
Overrides:
Locates resources by matching a given path.
Parameters:
Name Type Attributes Description
virPath string Virtual path
options object <optional>
Options
Properties
Name Type Attributes Default Description
nodir boolean <optional>
true Do not match directories
Returns:
Promise resolving to a single resource
Type
Promise.<module:@ui5/fs.Resource>