Skip to content

Commit b8a18fe

Browse files
committed
handle directories properly in autodownloader
for #8
1 parent e2bceff commit b8a18fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebAPI/ModelsAPI.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ public static async Task<JObject> DoModelDownloadWS(Session session, WebSocket w
507507
{
508508
File.Delete(tempPath);
509509
}
510+
Directory.CreateDirectory(Path.GetDirectoryName(outPath));
510511
await Utilities.DownloadFile(url, tempPath, async (progress, total) =>
511512
{
512513
await ws.SendJson(new JObject()

0 commit comments

Comments
 (0)