You are not logged in.
While cleaning up my system, I noticed pacman started creating download-* directories in /var/cache/pacman/pkg. Pacman didn't used to do this.
I checked and the directories created are empty. Are these safe to be removed? If so, is there an automated way on cleaning up these directories?
Offline
Pacman has created those directories since 7.0, but it looks like a recent bug that it's failing to delete them:
https://gitlab.archlinux.org/pacman/pacman/-/issues/297
Deleting the directories should be safe, otherwise you can just wait for a fix (or disable sandboxing in /etc/pacman.conf).
Offline
Fixed pacman leaving those directories in rare cases, only to make them leave the directories in much more common cases!
Offline
Live the meme \o/
Online