Skip to content

Commit 8d1280a

Browse files
committed
[fix] fixed the bug where BashUtil.RemoveDir failed to run under certain circumstances on macOS systems.
1 parent 528240b commit 8d1280a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Editor/Installer/BashUtil.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void RemoveDir(string dir, bool log = false)
8383
{
8484
RemoveDir(subDir);
8585
}
86-
Directory.Delete(dir);
86+
Directory.Delete(dir, true);
8787
break;
8888
}
8989
catch (Exception e)
@@ -111,12 +111,12 @@ private static void CopyWithCheckLongFile(string srcFile, string dstFile)
111111
#endif
112112
if (srcFile.Length > maxPathLength)
113113
{
114-
UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. copy ignore!");
114+
UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. skip copy!");
115115
return;
116116
}
117117
if (dstFile.Length > maxPathLength)
118118
{
119-
UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. copy ignore!");
119+
UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. skip copy!");
120120
return;
121121
}
122122
File.Copy(srcFile, dstFile);

0 commit comments

Comments
 (0)