Skip to content

Keep downloaded mod archives for a week instead of deleting them right away - #383

Open
fnielson1 wants to merge 2 commits into
Floogen:developmentfrom
fnielson1:keep-downloaded-archives
Open

fnielson1 wants to merge 2 commits into
Floogen:developmentfrom
fnielson1:keep-downloaded-archives

Conversation

@fnielson1

@fnielson1 fnielson1 commented Oct 17, 2026 •

Copy link
Copy Markdown

Summary

Stardrop currently deletes the archive it downloaded from Nexus Mods as soon as the mod is installed, and empties the Nexus download folder every time it starts. This keeps the original archives around for a while, so other tools can pick them up:

  • After installing a single mod (the per-mod update button, "install all updates", and "Mod Manager Download" links), the archive stays until 7 days have passed.
    Collection installs are still deleted immediately as ModSyncCheck has no use for them.
  • On startup, Stardrop now only deletes archives in the Nexus folder that are more than a week old.
  • Since an archive can now still be there when the same file is downloaded again, the download opens the file with FileMode.Create instead of FileMode.CreateNew, so it overwrites the old copy. The overwrite only happens once the response has succeeded, so a download that never starts leaves the old archive alone.

Motivation

I maintain Mod Sync Check, which lets a multiplayer host send missing mods to joining players. When the host has a mod's original Nexus archive, it sends that file unchanged, and the player checks its MD5 with Nexus Mods before installing it. Players using Stardrop never had those archives, because Stardrop deleted them. With this change, Mod Sync Check moves them out of %AppData%\Stardrop\Data\Nexus when the game starts, whether or not the game was launched from Stardrop. Without such a tool, they're cleaned up after a week.

Testing

  • Downloaded a mod with "Mod Manager Download": it installed normally, the archive stayed in the Nexus folder. Starting the game, Mod Sync Check moved it out and performed its actions correctly.
  • Apparent behavior is unchanged to the user.

Frank Nielson and others added 2 commits October 16, 2026 21:32
Archives downloaded from Nexus Mods are no longer deleted after installing.
They stay in the Nexus folder for mods like ModSyncCheck to move out, and
Stardrop deletes any still there once they are a week old. A download whose
name is already taken by a kept archive overwrites it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WZe5qavYftiucj2HUFfcDC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WZe5qavYftiucj2HUFfcDC
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