Detect whether Notefile has been created yet

Is there a way to check whether a Notefile with a certain name has been created yet? I’m trying to write my firmware so that if the file “settings.db” has not been created yet, I create the file

Hey @yunzheng,

The Notecard automatically creates the Notefile for you if it doesn’t exist, so you don’t have to manually check for it.

TJ

I’m in a situation where it would still be more convenient for me to check if the Notefile has been created yet. Is there a way to do this?

Try the file.changes request with no arguments. I just did some quick testing with it and it seems to do what you’re looking for.

TJ

2 Likes