Skip to content

Commit c924ca2

Browse files
committed
Put temporary files in current directory instead of %Temp%
This should hopefully speed up Windows builds on GitHub Actions: actions/runner-images#8755
1 parent 30432d2 commit c924ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DuckDB.NET.Test/Helpers/DisposableFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public DisposableFile(string filename)
2020

2121
public static DisposableFile GenerateInTemp(string extension = null, int? index = null, bool create = false)
2222
{
23-
var fileBuilder = new StringBuilder(Path.Combine(Path.GetTempPath(), "Temp File-" + Guid.NewGuid().ToString()));
23+
var fileBuilder = new StringBuilder(Path.Combine(Directory.GetCurrentDirectory(), "Temp File-" + Guid.NewGuid().ToString()));
2424

2525
if (index != null)
2626
{

0 commit comments

Comments
 (0)