Skip to content

Commit

Permalink
Put temporary files in current directory instead of %Temp%
Browse files Browse the repository at this point in the history
This should hopefully speed up Windows builds on GitHub Actions: actions/runner-images#8755
  • Loading branch information
Giorgi committed Mar 7, 2024
1 parent 30432d2 commit c924ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDB.NET.Test/Helpers/DisposableFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public DisposableFile(string filename)

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

if (index != null)
{
Expand Down

0 comments on commit c924ca2

Please sign in to comment.