fix: 正确获取临时文件路径

This commit is contained in:
姚彪
2023-12-14 16:45:01 +08:00
parent 3cc6451f68
commit f6931fe4cb

View File

@@ -164,7 +164,7 @@ public class MultiThreadDownloader
public MultiThreadDownloader(string sourceUrl, string savePath, int numOfParts) : this(sourceUrl, null,
savePath, numOfParts)
{
TempFileDirectory = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
TempFileDirectory = Path.Combine(Path.GetTempPath(), "DownKyi");
}
/// <summary>