Skip to main content

File Driver

The file driver lets you access the local file system.

Installation​

It is bundled with the typefs package.

Configuration​

The file driver takes two configuration parameters:

Storage.config = {
disks: {
"assets": {
"root": "/app/assets",
"jail": true,
}
}

Paramaters​

ParamTypeDescription
rootstringdefines the absolute path of the disk root path
jailbooleanwhen set to true, it only allows access to files and directories in side the root path