zevv / duc

Dude, where are my bytes: Duc, a library and suite of tools for inspecting disk usage
GNU Lesser General Public License v3.0
598 stars 79 forks source link

duc.c: Create ~/.cache if needed #296

Open licy183 opened 2 years ago

licy183 commented 2 years ago

If ~/.cache doesn't exist, some error will happen. See https://github.com/termux/termux-packages/pull/11350#issuecomment-1193645585.

l8gravely commented 2 months ago

I'd merge this, but you need to handle errors better. If the mkdir() call fails, duc needs to error our more gracefully. I like the idea, but it needs some more work.

And apologies for the delay, now that v1.5.0-rc1 is about to come out, it would be great if you could re-spin this to address these issues.