Skip to content

fix(extract): create parent directories before downloading models#2

Open
lmntrixace wants to merge 1 commit into
rohansx:mainfrom
lmntrixace:fix/model-download-dir-creation
Open

fix(extract): create parent directories before downloading models#2
lmntrixace wants to merge 1 commit into
rohansx:mainfrom
lmntrixace:fix/model-download-dir-creation

Conversation

@lmntrixace

Copy link
Copy Markdown

Issue
The ctxgraph models download command was failing with an I/O error: "No such file or directory (os error 2)"
This happened because the downloader tried to save model files into subdirectories (like onnx/) that hadn't been created yet.

Environment
OS: macOS
Rust Version: rustc 1.96.0 (stable)

Fix
I updated the ModelManager to automatically create the full folder path before it starts downloading each file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant