implement #exists(path)

This commit is contained in:
Laytan Laats
2024-06-04 19:06:13 +02:00
parent 4f5b2bd127
commit b47a15733d
3 changed files with 80 additions and 24 deletions
+9
View File
@@ -336,7 +336,16 @@ struct ObjcMsgData {
ObjcMsgKind kind;
Type *proc_type;
};
enum LoadFileTier {
LoadFileTier_Invalid,
LoadFileTier_Exists,
LoadFileTier_Contents,
};
struct LoadFileCache {
LoadFileTier tier;
bool exists;
String path;
gbFileError file_error;
String data;