fx128: Handle changed error message for IOUtils.makeDir on broken symlink

This commit is contained in:
Dan Stillman 2024-06-10 05:50:06 -04:00
parent 24bf583b78
commit 187b1649c1

View file

@ -105,7 +105,7 @@ export let OS = {
catch (e) {
// Broken symlink
if (e.name == 'InvalidAccessError') {
if (/Could not create directory because the target file(.+) exists and is not a directory/.test(e.message)) {
if (/Could not create directory (.+): file exists and is not a directory/.test(e.message)) {
let osFileError = new OS.File.Error(e.message);
osFileError.becauseExists = true;
throw osFileError;