[CHECK IF SPECIFIC SAVE FILE EXISTS]

I'm making a menu through events and I ran into this problem.
I'd like to check if there are specific save files (file1, file2). I found that some people had the same question, but it was for other versions like VX Ace and MV, I haven't found anything for MZ.

I've used a conditional branch with StorageManager.exists(1), and it returns a false statement even with an existent save file (see attached pictures)

Thanks in advance!
StorangeManager got slightly changed in MZ, in that the methods now require you to put the filename instead of just the ID. So instead of StorageManager.exists(1), you want to do:

JavaScript:
StorageManager.exists('file1')

If the ID is a variable, instead of hardcoded, you can use DataManager.makeSavename(savefileId) to convert it into a filename.
That was fast!
Thank you so much. It worked perfectly.
No problem.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-specific-save-file-exists.143833/