Skip to content

CivitAI downloader - Handling filenames with slash symbol on Windows. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Kanareika opened this issue Jun 22, 2024 · 1 comment
Closed

Comments

@Kanareika
Copy link

I tried to download this Lora (warning: NSFW images): https://civitai.com/models/287657/oroborus-savagexthicc-style-lora
Got an error: "Error: Failed to download the model due to internal exception. "
In the console window, there is exception:

Failed to download the model due to internal exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\sd_models\Lora\Oroborus\Savagexthicc - Style LoRA - Oroborus PonyXL.download.tmp'.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)

So, basicaly, instead of full filename, Windows interpreted it like a local path.

@mcmonkey4eva
Copy link
Member

Pushed fix to autocreate directories as-needed based on your save name

image
Note that ^ the default save name for this model has a / in it, so it will go into a folder named Oroborus - if you don't want this, just remove the / from the save name before you click download

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

No branches or pull requests

2 participants