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

Made 'not found' not be an error on directory deletion

This commit is contained in:
Brian Fiete 2020-05-07 05:40:16 -07:00
parent 0edc697e14
commit 0a6949a7d0

View file

@ -43,7 +43,7 @@ namespace System.IO
{ {
Platform.BfpFileResult result = default; Platform.BfpFileResult result = default;
Platform.BfpDirectory_Delete(path.ToScopeCStr!(), &result); Platform.BfpDirectory_Delete(path.ToScopeCStr!(), &result);
if (result != .Ok) if ((result != .Ok) && (result != .NotFound))
return .Err(result); return .Err(result);
return .Ok; return .Ok;
} }