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 |
Methods
copyFrom(context, src, attrs, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
src |
string | |
attrs |
* | |
callback |
function |
copyTo(context, item, dest, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
dest |
string | |
callback |
function |
createReadStream(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
exists(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
find(context, query, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
query |
* | |
callback |
function |
findOne(context, query, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
query |
* | |
callback |
function |
init(callback)
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
remove(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
resolvePhysicalPath(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |
resolveUrl(context, item, callback)
Parameters:
Name | Type | Description |
---|---|---|
context |
HttpContext | |
item |
* | |
callback |
function |