root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.47k stars 168 forks source link

Folders not being deleted #463

Closed pieterhouwen closed 1 year ago

pieterhouwen commented 1 year ago

Hello,

When the system is purging old uploads it removes the files themselves but not the containing folder resulting in many many empty folders in the files directory.

How can this be fixed?

I can cd into the files directory and do a rmdir * so it will keep all the folders containing files but a better solution would be that the system does that for me :)

camathieu commented 1 year ago

Taking a look

camathieu commented 1 year ago

https://github.com/root-gg/plik/pull/477