mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 04:44:35 +00:00
Moved temporary files into a folder of their own below the data directory (#1245)
This commit is contained in:
1 parent
ddfc632b63
commit
12d3e1ec6c
52 files changed
+1219
-396
No files matched your search
@@ -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() : [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user