sugo-endpoint-file
Endpoint to handle files
Requirements
Installation
$ npm install sugo-endpoint-file --save
Usage
Create an instance and apply to sg-server (or sugo-cloud)
/** This is an example to use sugo-endpoint-file */ 'use strict' const sgServer = const server = server
Then call the api from agent script.
'use strict' const sugoAgentFile = const co =
Signature
sugoEndpointFile(dirname, options) -> function
Endpoint to handle files
Args
Name | Type | Default | Description |
---|---|---|---|
dirname | string | Directory name of files path | |
options | object | Optional settings. |
License
This software is released under the Apache-2.0 License.