Protected
Readonly
configProtected
Optional
defaultProtected
filesystemsProtected
Readonly
loggingThe current status of the unit.
Private
appThe global application instance.
Protected
appGet the global Application.
Protected
containerThis method is called to stop the unit when the application is shutting down. Here, you should do any teardown required to stop the package cleanly.
IN PARTICULAR take care to free blocking resources that could prevent the process from exiting without a kill.
Get the method with the given name from this class, bound to this class.
function
Get the method with the given name from this class, bound to this class.
function
Rest
...args: any[]Given the name of a filesystem registered in the system, get that filesystem.
Optional
key: stringProtected
makeRegister the given filesystem with this service by name.
Unit service that loads and creates Filesystem drivers from config. The filesystems will automatically be opened when the app starts, and closed when it stops.
Example
Filesystems can be defined in the
server.filesystems
config. For example:The
config
key should be an instance of the config interface for the driver in question.Example
Filesystems can then be accessed from the Files service: