Data Folder#
The data folder in a Regolith project is a special directory designed to store files used by filters that don’t belong in the BP (behavior pack) or RP (resource pack) folders. By default, the data folder is located at ./packs/data, but its location can be customized using the dataPath setting in the project configuration file.
Filter Data#
Typically, the data folder contains subfolders corresponding to the names of the filters installed in the project. However, you’re free to add files directly to the root of the data folder or create additional subfolders for other purposes.
Naming subfolders to match the names of the filters isn’t just a matter of convention - it has practical significance:
Default Data Files : Some filters include default data files that are automatically copied into the
datafolder when the filter is installed for the first time. These files are placed in a subfolder named after the filter.Editable Data Folders : Certain filters register their data folders as editable. When this happens, any changes made to these folders during running filters are saved to the project. This feature allows filters to store and update persistent data between runs.
As a user, you don’t have to worry about these details too much:
The
installcommand will never overwrite existing filter data, ensuring your customizations are preserved.Most filters do not register their data as editable. If a filter does, this is typically noted in its documentation.