MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / DeletePath

Method DeletePath

loader/Main/Utils.cs:29–37  ·  view source on GitHub ↗
(string path, bool isDir = false)

Source from the content-addressed store, hash-verified

27 }
28
29 public static void DeletePath(string path, bool isDir = false)
30 {
31 try
32 {
33 if (isDir) Directory.Delete(path, true);
34 else File.Delete(path);
35 }
36 catch { }
37 }
38
39 public static void EnsureDirectoryExists(string path)
40 {

Callers 2

SetActiveMethod · 0.80
CheckUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected