You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build environment: All Moddable SDK version: 4.9 Target device: Any
Description
The documentation for overriding the default config.file.root value is incorrect.
Currently in /documentation/files/files.md the section "Host File System Configuration" has this code fragment:
"defines": {"file":{"root": "#/myroot"}}
The correct code fragment is:
"config": {"file":{"root": "/myroot"}}
Errata
Submitting as an issue to avoid sending a two line PR :)
The text was updated successfully, but these errors were encountered:
@kallistisoft – thanks for the reports. I'll update the Files document to correct that. The convention is to have the root end with a / – so you can write config.file.root + "foo.json", so it will be /myroot/.
The file root for desktop computers is a little bit arbitrary and, admittedly, inconsistent. But, I'm not sure what would be least surprising; ;) The idea is to have the file system be in some sort of local sandbox, since that better reflects the file system on an embedded microcontroller.
Build environment: All
Moddable SDK version: 4.9
Target device: Any
Description
The documentation for overriding the default
config.file.root
value is incorrect.Currently in /documentation/files/files.md the section "Host File System Configuration" has this code fragment:
The correct code fragment is:
Errata
Submitting as an issue to avoid sending a two line PR :)
The text was updated successfully, but these errors were encountered: