1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00

Added a bunch more comptime platform file & directory methods

This commit is contained in:
Brian Fiete 2021-12-28 15:49:50 -05:00
parent adf282dfa7
commit af8bd5a813
4 changed files with 449 additions and 9 deletions

View file

@ -132,11 +132,9 @@ namespace System.IO
return (IEnumerator<Result<String>>)null;
}*/
static extern bool Exists(char8* fileName);
public static bool Exists(StringView fileName)
{
return Exists(fileName.ToScopeCStr!());
return Platform.BfpFile_Exists(fileName.ToScopeCStr!());
}
public static Result<void, Platform.BfpFileResult> Delete(StringView fileName)