private static void PrepareExportDirectory(string path) { #if !NET_CORE if (!RunetimeUtils.IsRunningOnMono) { string directory = Directory.GetCurrentDirectory(); CheckWritePermission(directory); } #endif if (DirectoryUtils.Exists(path)) { DirectoryUtils.Delete(path, true); } }