mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 00:50:25 +02:00
Made 'not found' not be an error on directory deletion
This commit is contained in:
parent
0edc697e14
commit
0a6949a7d0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue