-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Hi 👋
I am trying to use dust to get an understanding of how the disk in my CI is being used.
Context: in macos, accessing some specific folders/files leads to a UI prompt asking the user for permission - this feature is documented here.
When this happens, the read operation is stalled indefinitely until the prompt is answered by the user. This means: dust stalls.
To work around this issue, I tried excluding the /Users folder, so dust does not even try to access any privacy-sensible folder:
sudo dust \
--min-size 5G \
--number-of-lines 999999999 \
--reverse \
--bars-on-right \
--no-progress \
--no-colors \
--ignore-directory "/Users" \
/ But this did not help: even when using --ignore-directory "/Users", the prompt continues appearing.
How to reproduce:
tccutil reset SystemPolicyDesktopFolder
sudo dust \
--min-size 5G \
--number-of-lines 999999999 \
--reverse \
--bars-on-right \
--no-progress \
--no-colors \
--ignore-directory "/Users" \
/
# The privacy permission prompt will appear, stalling dust executionExpected behaviour: when using --ignore-directory "/Users", dust does not try to access the Desktop folder, and the privacy permission prompt does not appear