Skip to content

Remove empty directories on Clean Generated Files with Blobs#6749

Open
SandiyosDev wants to merge 2 commits intostashapp:developfrom
Bridgebox-dev:fix/5354-clean-empty-blob-dirs
Open

Remove empty directories on Clean Generated Files with Blobs#6749
SandiyosDev wants to merge 2 commits intostashapp:developfrom
Bridgebox-dev:fix/5354-clean-empty-blob-dirs

Conversation

@SandiyosDev
Copy link
Copy Markdown
Contributor

close #5354

already triaged, blob files gets cleaned but empty hash prefix folders stick around, added a pass after walk to remove them
respects dry-run

@SandiyosDev SandiyosDev changed the title Remove empty directories from the project Remove empty directories on Clean Generated Files with Blobs Mar 24, 2026
@Gykes
Copy link
Copy Markdown
Collaborator

Gykes commented Mar 24, 2026

So I see 7 PR's opened by you recently. I see that they are also somewhat small but lets keep it down to a few PRs at a time and not start flooding stuff.

You don't need to close anything existing but lets stop on anymore till your others can be verified.

@SandiyosDev
Copy link
Copy Markdown
Contributor Author

Cool, I'm only doing 3-4 a day on my free time, I'll work on other repos for now
will continue if it all checks out

Copy link
Copy Markdown
Collaborator

@Gykes Gykes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept is good. Since you added that function you can add it to CleanThumbnail and CleanMarkers

@SandiyosDev
Copy link
Copy Markdown
Contributor Author

@Gykes Does my last commit seem good with you?

Copy link
Copy Markdown
Collaborator

@Gykes Gykes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review looks good
Was able to build and run clean, no obvious errors appeared.

My dev env doesn't have to much to clean up but the logic seems sound.

@SandiyosDev
Copy link
Copy Markdown
Contributor Author

Static review looks good
Was able to build and run clean, no obvious errors appeared.

My dev env doesn't have to much to clean up but the logic seems sound.

Would this repo entertain me building a devcontainer similar to what Immich uses?

@Gykes
Copy link
Copy Markdown
Collaborator

Gykes commented Apr 1, 2026

0 experience with that.

Perhaps create an issue or ask in discord for opinions.

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.

[Bug Report] Removed blobs folders are not removed

2 participants