From 0a6949a7d0c95e5e3dcda657ae0771be304e0e57 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 7 May 2020 05:40:16 -0700 Subject: [PATCH] Made 'not found' not be an error on directory deletion --- BeefLibs/corlib/src/IO/Directory.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/IO/Directory.bf b/BeefLibs/corlib/src/IO/Directory.bf index 1a1d1f24..eb2d27ef 100644 --- a/BeefLibs/corlib/src/IO/Directory.bf +++ b/BeefLibs/corlib/src/IO/Directory.bf @@ -43,7 +43,7 @@ namespace System.IO { Platform.BfpFileResult result = default; Platform.BfpDirectory_Delete(path.ToScopeCStr!(), &result); - if (result != .Ok) + if ((result != .Ok) && (result != .NotFound)) return .Err(result); return .Ok; }