Constructor
    
    new Memory(parameters)
    
    
    - Source:
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The constructor.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                parameters | 
            
            
            
                
object
            
             | 
            
            
            Parameters
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Description | 
     
    
    
    
        
            
                virBasePath | 
            
            
            
                
string
            
             | 
            
                
                
                
                
                 | 
            
            
            Virtual base path | 
         
    
        
            
                excludes | 
            
            
            
                
Array.<string>
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            List of glob patterns to exclude | 
         
    
        
            
                project | 
            
            
            
                
object
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            Experimental, internal parameter. Do not use | 
         
    
    
 
             | 
        
    
    
        
         
    
    
        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>>
    
 
    
        
            
    
    
    
    
    - 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>
    
 
    
        
            
    
    write(resource, optionsopt) → {Promise.<undefined>}
    
    
    - Source:
 
    
    
    
    
    
    
    - Overrides:
 
    
    
    
    
    
    
    
    
    
    
    
    
    
    Writes the content of a resource to a path.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Description | 
    
    
    
    
        
            
                resource | 
            
            
            
                
module:@ui5/fs.Resource
            
             | 
            
                
                
                
                
                 | 
            
            
            Resource to write | 
        
    
        
            
                options | 
            
            
            
                
object
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Default | 
        
        Description | 
     
    
    
    
        
            
                readOnly | 
            
            
            
                
boolean
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
                
                
                    false
                
                 | 
            
            Whether the resource content shall be written read-only
						Do not use in conjunction with the drain option.
						The written file will be used as the new source of this resources content.
						Therefore the written file should not be altered by any means.
						Activating this option might improve overall memory consumption. | 
         
    
        
            
                drain | 
            
            
            
                
boolean
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
                
                
                    false
                
                 | 
            
            Whether the resource content shall be emptied during the write process.
						Do not use in conjunction with the readOnly option.
						Activating this option might improve overall memory consumption.
						This should be used in cases where this is the last access to the resource.
						E.g. the final write of a resource after all processing is finished. | 
         
    
    
 
             | 
        
    
    
Returns:
        
    Promise resolving once data has been written
    - 
        Type
    
 
    - 
        
Promise.<undefined>