[fix] fixed the bug where BashUtil.RemoveDir failed to run under certain circumstances on macOS systems.
parent
528240b52b
commit
8d1280a1bd
|
|
@ -83,7 +83,7 @@ namespace HybridCLR.Editor.Installer
|
||||||
{
|
{
|
||||||
RemoveDir(subDir);
|
RemoveDir(subDir);
|
||||||
}
|
}
|
||||||
Directory.Delete(dir);
|
Directory.Delete(dir, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
@ -111,12 +111,12 @@ namespace HybridCLR.Editor.Installer
|
||||||
#endif
|
#endif
|
||||||
if (srcFile.Length > maxPathLength)
|
if (srcFile.Length > maxPathLength)
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. copy ignore!");
|
UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. skip copy!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (dstFile.Length > maxPathLength)
|
if (dstFile.Length > maxPathLength)
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. copy ignore!");
|
UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. skip copy!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
File.Copy(srcFile, dstFile);
|
File.Copy(srcFile, dstFile);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue