Reading and writing files - Joolee/Homey-unofficial-documentation GitHub Wiki

Homey runs your app in a chrooted environment. In that sandbox, all the files that you find in the .homeybuild directory after building are available, the root of your app is considered the file system root /. You can read programmatically from all the files in there. This can be useful to access large .json files by using a simple const jsonContent = require('/assets/file.json').

It is possible to write files like logs, cache or uploaded files to the /userdata directory.