Global-props folder

In an Ignition project I see a folder called global-props, which stores a binary file. What is the folder global-props used for?

It stores resources of the “global-props” type. All resource types are stored under a folder named for the type. You can’t really do anything with this one.

You lost me at “global-props”. What is a “global-props” type? Do you have an example?

Eh, we’re veering into internal implementation details here, but it’s the resource type that stores some of the “core” project properties like client poll rate, default datasource, default provider, required roles, etc…

It’s saved in an opaque binary format right now, which is why there’s nothing you can really do with it.

Can I ignore the JSON file from this folder if I am using git to versioning the project?

You might get away with ignoring modifications to it, but if it doesn't exist then the resource would no longer be valid.

1 Like

Thanks a lot!

I created a hook to handle the initial creation of resource.json files and then flagged those files as "assume-unchanged". This way, future commits will ignore changes to those files while still keeping them in the repo.

Just out of curiosity, I tested ignoring the resource.json file inside a View folder (Perspective), and when I cloned the repository again, the view turned into a regular folder, haha. So you were 100% right when you said that wouldn't work! :sweat_smile: