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

Debugger fixes

Removing some debugger remote-requests
This commit is contained in:
Brian Fiete 2019-09-20 09:21:29 -07:00
parent c2d086fe8e
commit a32d18d962
21 changed files with 198 additions and 638 deletions

View file

@ -48,19 +48,17 @@ namespace System.IO
return .Ok;
}
public static Result<void> DelTree(StringView path)
public static Result<void, Platform.BfpFileResult> DelTree(StringView path)
{
if (path.Length <= 2)
return .Err;
return .Err(.InvalidParameter);
if ((path[0] != '/') && (path[0] != '\\'))
{
if (path[1] == ':')
{
if (path.Length < 3)
return .Err;
return .Err(.InvalidParameter);
}
else
return .Err;
}
for (var fileEntry in Directory.EnumerateDirectories(path))