FileStorage

module:most-web.files. FileStorage

An abstract class that describes a file storage.

Constructor

new FileStorage()

Properties:
Name Type Description
root string Gets or sets a string that represents the physical root path of this file storage
virtualPath string Gets or sets a string that represents the virtual path of this file storage
Source:

Methods

copyFrom(context, src, attrs, callback)

Parameters:
Name Type Description
context HttpContext
src string
attrs *
callback function
Source:

copyTo(context, item, dest, callback)

Parameters:
Name Type Description
context HttpContext
item *
dest string
callback function
Source:

createReadStream(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

exists(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

find(context, query, callback)

Parameters:
Name Type Description
context HttpContext
query *
callback function
Source:

findOne(context, query, callback)

Parameters:
Name Type Description
context HttpContext
query *
callback function
Source:

init(callback)

Parameters:
Name Type Description
callback function
Source:

remove(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

resolvePhysicalPath(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source:

resolveUrl(context, item, callback)

Parameters:
Name Type Description
context HttpContext
item *
callback function
Source: