/// <summary> /// /// </summary> /// <param name="target"></param> /// <param name="timeoutMilliseconds"></param> public static void DeleteDirectory(string target, int timeoutMilliseconds = 0) { Directory.Delete(target, true); CoreUtil.Retry(timeoutMilliseconds, 100, () => { if (Directory.Exists(target)) { throw new IOException(); } }, () => throw new IOException(target + " ディレクトリは削除できませんでした。")); }