Moved temporary files into a folder of their own below the data directory (#1245)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-29 18:45:34 +01:00
1 parent ddfc632b63
commit 12d3e1ec6c
52 files changed
+1219 -396

No files matched your search

+3 -4
View File
@@ -1,9 +1,8 @@
using AIStudio.Tools.OpenXml;
namespace AIStudio.Tests.Tools.OpenXml;
/// <summary>
/// The folder in which StagedDocument puts its files. Tests have no data directory, so it lies in the temporary folder.
/// The folder in which StagedDocument puts its files: the temporary folder of AI Studio, which lies below the data
/// directory of the tests, see TestHost.
/// </summary>
internal static class StagingFolder
{
@@ -12,7 +11,7 @@ internal static class StagingFolder
/// </summary>
public static HashSet<string> Files()
{
var directory = Path.Join(Path.GetTempPath(), StagedDocument.DIRECTORY);
var directory = Path.Join(TestHost.DATA_DIRECTORY, "tmp");
return Directory.Exists(directory) ? Directory.EnumerateFiles(directory).ToHashSet() : [];
}
}