I've been getting my hands on Godot Mono for about a few days, and it's truly fun trying C# even if I receive so many errors on each new line I write. What I want to do though is load a directory for a complex dialogue system. Unfortunately, I can't seem to find the best docs/API reference site for Godot Mono (some sites use GDScript code samples instead of C#... :I ).
I'm stuck on what to do if the directory specified doesn't exist or something else happened. In GDScript, I believe it would be written like this:
var Is_Dir_Loaded = My_Directory.open("res://something") == OK
But the OK code? I have no clue what it is in C#. What is the equivalent "word" for this? Also, if there is a right solution, will it also apply to other error codes? Thanks.