Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Space says why it leaves a folder the guard refuses
Țugui Dragoș227328c47b82
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 68f1f88c..6bed412d 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -88518,6 +88518,686 @@}}},+ "Peel leaves ^[%lld folder](inflect: true) here alone because an app keeps work there that exists nowhere else, such as an editor’s local history." : {+ "localizations" : {+ "cs" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složky ponechává nedotčené, protože v nich aplikace uchovává práci, která neexistuje nikde jinde, například místní historii editoru."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složky ponechává nedotčené, protože v nich aplikace uchovává práci, která neexistuje nikde jinde, například místní historii editoru."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složku ponechává nedotčenou, protože v ní aplikace uchovává práci, která neexistuje nikde jinde, například místní historii editoru."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složek ponechává nedotčených, protože v nich aplikace uchovává práci, která neexistuje nikde jinde, například místní historii editoru."+ }+ }+ }+ }+ },+ "de" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lässt %lld Ordner hier unangetastet, weil eine App darin Arbeit aufbewahrt, die es nirgendwo sonst gibt, etwa den lokalen Verlauf eines Editors."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lässt %lld Ordner hier unangetastet, weil eine App darin Arbeit aufbewahrt, die es nirgendwo sonst gibt, etwa den lokalen Verlauf eines Editors."+ }+ }+ }+ }+ },+ "es" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel deja %lld de carpetas de aquí sin tocar porque una app guarda allí trabajo que no existe en ningún otro sitio, como el historial local de un editor."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel deja una carpeta de aquí sin tocar porque una app guarda allí trabajo que no existe en ningún otro sitio, como el historial local de un editor."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel deja %lld carpetas de aquí sin tocar porque una app guarda allí trabajo que no existe en ningún otro sitio, como el historial local de un editor."+ }+ }+ }+ }+ },+ "fr" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ici, Peel laisse %lld de dossiers en place, car une app y conserve du travail qui n’existe nulle part ailleurs, comme l’historique local d’un éditeur."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ici, Peel laisse %lld dossier en place, car une app y conserve du travail qui n’existe nulle part ailleurs, comme l’historique local d’un éditeur."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ici, Peel laisse %lld dossiers en place, car une app y conserve du travail qui n’existe nulle part ailleurs, comme l’historique local d’un éditeur."+ }+ }+ }+ }+ },+ "it" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lascia dove sono %lld di queste cartelle, perché un’app vi conserva un lavoro che non esiste altrove, come la cronologia locale di un editor."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lascia dov’è una di queste cartelle, perché un’app vi conserva un lavoro che non esiste altrove, come la cronologia locale di un editor."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lascia dove sono %lld di queste cartelle, perché un’app vi conserva un lavoro che non esiste altrove, come la cronologia locale di un editor."+ }+ }+ }+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peelは、ここにある%lld個のフォルダをそのままにしています。エディタのローカル履歴など、ほかのどこにも存在しない作業内容をアプリがそこに保管しているためです。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel은 여기에 있는 폴더 %lld개를 그대로 둡니다. 편집기의 로컬 기록처럼 다른 곳에는 없는 작업을 앱이 그곳에 보관하기 때문입니다."+ }+ },+ "nl" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel laat één map hier met rust, omdat een app daar werk bewaart dat nergens anders bestaat, zoals de lokale geschiedenis van een editor."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel laat %lld mappen hier met rust, omdat een app daar werk bewaart dat nergens anders bestaat, zoals de lokale geschiedenis van een editor."+ }+ }+ }+ }+ },+ "pl" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld foldery z tego miejsca nietknięte, ponieważ aplikacja przechowuje w nich pracę, której nie ma nigdzie indziej, na przykład lokalną historię edytora."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld folderów z tego miejsca nietkniętych, ponieważ aplikacja przechowuje w nich pracę, której nie ma nigdzie indziej, na przykład lokalną historię edytora."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld folder z tego miejsca nietknięty, ponieważ aplikacja przechowuje w nim pracę, której nie ma nigdzie indziej, na przykład lokalną historię edytora."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld folderu z tego miejsca nietkniętego, ponieważ aplikacja przechowuje w nich pracę, której nie ma nigdzie indziej, na przykład lokalną historię edytora."+ }+ }+ }+ }+ },+ "pt" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel deixa %lld de pastas daqui intocadas porque um app guarda nelas um trabalho que não existe em nenhum outro lugar, como o histórico local de um editor."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel deixa %lld pasta daqui intocada porque um app guarda nela um trabalho que não existe em nenhum outro lugar, como o histórico local de um editor."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel deixa %lld pastas daqui intocadas porque um app guarda nelas um trabalho que não existe em nenhum outro lugar, como o histórico local de um editor."+ }+ }+ }+ }+ },+ "ro" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lasă %lld dosare de aici neatinse, deoarece o aplicație păstrează acolo lucrări care nu există nicăieri altundeva, cum ar fi istoricul local al unui editor."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lasă %lld dosar de aici neatins, deoarece o aplicație păstrează acolo lucrări care nu există nicăieri altundeva, cum ar fi istoricul local al unui editor."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lasă %lld de dosare de aici neatinse, deoarece o aplicație păstrează acolo lucrări care nu există nicăieri altundeva, cum ar fi istoricul local al unui editor."+ }+ }+ }+ }+ },+ "ru" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папки, потому что приложение хранит там результаты работы, которых больше нигде нет, например локальную историю редактора."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папок, потому что приложение хранит там результаты работы, которых больше нигде нет, например локальную историю редактора."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папку, потому что приложение хранит там результаты работы, которых больше нигде нет, например локальную историю редактора."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папки, потому что приложение хранит там результаты работы, которых больше нигде нет, например локальную историю редактора."+ }+ }+ }+ }+ },+ "sv" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lämnar %lld mapp här orörd eftersom en app sparar arbete i den som inte finns någon annanstans, till exempel en kodredigerares lokala historik."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lämnar %lld mappar här orörda eftersom en app sparar arbete i dem som inte finns någon annanstans, till exempel en kodredigerares lokala historik."+ }+ }+ }+ }+ },+ "tr" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel buradaki %lld klasörü yerinde bırakır, çünkü bir uygulama orada başka hiçbir yerde bulunmayan çalışmalar tutar, örneğin bir düzenleyicinin yerel geçmişi."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel buradaki %lld klasörü yerinde bırakır, çünkü bir uygulama bu klasörlerde başka hiçbir yerde bulunmayan çalışmalar tutar, örneğin bir düzenleyicinin yerel geçmişi."+ }+ }+ }+ }+ },+ "uk" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папки звідси, бо програми зберігають у них роботу, якої більше ніде немає, як-от локальну історію редактора."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папок звідси, бо програми зберігають у них роботу, якої більше ніде немає, як-от локальну історію редактора."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папку звідси, бо програма зберігає в ній роботу, якої більше ніде немає, як-от локальну історію редактора."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папки звідси, бо програми зберігають у них роботу, якої більше ніде немає, як-от локальну історію редактора."+ }+ }+ }+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel不会触碰此处的%lld个文件夹,因为有App在其中保存了在其他任何地方都不存在的内容,例如编辑器的本地历史记录。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel將這裡的%lld個檔案夾原地保留,因為有App在其中保存不存在於其他任何地方的工作成果,例如編輯器的本機歷史記錄。"+ }+ }+ }+ },+ "Peel leaves ^[%lld folder](inflect: true) here alone because it protects what is there, such as a wallet, an app’s documents, or a library." : {+ "localizations" : {+ "cs" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složky ponechává nedotčené, protože chrání, co v nich je, například peněženku, dokumenty aplikace nebo knihovnu."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složky ponechává nedotčené, protože chrání, co v nich je, například peněženku, dokumenty aplikace nebo knihovnu."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složku ponechává nedotčenou, protože chrání, co v ní je, například peněženku, dokumenty aplikace nebo knihovnu."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zde %lld složek ponechává nedotčených, protože chrání, co v nich je, například peněženku, dokumenty aplikace nebo knihovnu."+ }+ }+ }+ }+ },+ "de" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lässt %lld Ordner hier unangetastet, weil Peel schützt, was darin liegt, etwa eine Wallet, die Dokumente einer App oder eine Mediathek."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lässt %lld Ordner hier unangetastet, weil Peel schützt, was darin liegt, etwa eine Wallet, die Dokumente einer App oder eine Mediathek."+ }+ }+ }+ }+ },+ "es" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel deja %lld de carpetas de aquí sin tocar porque protege lo que hay dentro, como un monedero digital, los documentos de una app o una biblioteca."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel deja una carpeta de aquí sin tocar porque protege lo que hay dentro, como un monedero digital, los documentos de una app o una biblioteca."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel deja %lld carpetas de aquí sin tocar porque protege lo que hay dentro, como un monedero digital, los documentos de una app o una biblioteca."+ }+ }+ }+ }+ },+ "fr" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ici, Peel laisse %lld de dossiers en place, car il protège ce qui s’y trouve, comme un portefeuille, les documents d’une app ou une bibliothèque."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ici, Peel laisse %lld dossier en place, car il protège ce qui s’y trouve, comme un portefeuille, les documents d’une app ou une bibliothèque."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ici, Peel laisse %lld dossiers en place, car il protège ce qui s’y trouve, comme un portefeuille, les documents d’une app ou une bibliothèque."+ }+ }+ }+ }+ },+ "it" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lascia dove sono %lld di queste cartelle, perché protegge ciò che contengono, come un wallet, i documenti di un’app o una libreria."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lascia dov’è una di queste cartelle, perché protegge ciò che contiene, come un wallet, i documenti di un’app o una libreria."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lascia dove sono %lld di queste cartelle, perché protegge ciò che contengono, come un wallet, i documenti di un’app o una libreria."+ }+ }+ }+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peelは、ここにある%lld個のフォルダをそのままにしています。ウォレット、アプリの書類、ライブラリなど、Peelが保護しているものが中にあるためです。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel은 여기에 있는 폴더 %lld개를 그대로 둡니다. 지갑, 앱의 문서 또는 보관함처럼 그곳에 있는 항목을 Peel이 보호하기 때문입니다."+ }+ },+ "nl" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel laat één map hier met rust, omdat het beschermt wat erin zit, zoals een wallet, de documenten van een app of een bibliotheek."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel laat %lld mappen hier met rust, omdat het beschermt wat erin zit, zoals een wallet, de documenten van een app of een bibliotheek."+ }+ }+ }+ }+ },+ "pl" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld foldery z tego miejsca nietknięte, ponieważ chroni to, co jest w środku, na przykład portfel, dokumenty aplikacji lub bibliotekę."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld folderów z tego miejsca nietkniętych, ponieważ chroni to, co jest w środku, na przykład portfel, dokumenty aplikacji lub bibliotekę."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld folder z tego miejsca nietknięty, ponieważ chroni to, co jest w środku, na przykład portfel, dokumenty aplikacji lub bibliotekę."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel zostawia %lld folderu z tego miejsca nietkniętego, ponieważ chroni to, co jest w środku, na przykład portfel, dokumenty aplikacji lub bibliotekę."+ }+ }+ }+ }+ },+ "pt" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel deixa %lld de pastas daqui intocadas porque protege o que há nelas, como uma carteira, os documentos de um app ou uma biblioteca."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel deixa %lld pasta daqui intocada porque protege o que há nela, como uma carteira, os documentos de um app ou uma biblioteca."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "O Peel deixa %lld pastas daqui intocadas porque protege o que há nelas, como uma carteira, os documentos de um app ou uma biblioteca."+ }+ }+ }+ }+ },+ "ro" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lasă %lld dosare de aici neatinse, deoarece protejează ce se află acolo, cum ar fi un portofel, documentele unei aplicații sau o bibliotecă."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lasă %lld dosar de aici neatins, deoarece protejează ce se află acolo, cum ar fi un portofel, documentele unei aplicații sau o bibliotecă."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lasă %lld de dosare de aici neatinse, deoarece protejează ce se află acolo, cum ar fi un portofel, documentele unei aplicații sau o bibliotecă."+ }+ }+ }+ }+ },+ "ru" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папки, потому что защищает то, что там находится, например кошелек, документы приложения или медиатеку."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папок, потому что защищает то, что там находится, например кошелек, документы приложения или медиатеку."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папку, потому что защищает то, что там находится, например кошелек, документы приложения или медиатеку."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel оставляет здесь на месте %lld папки, потому что защищает то, что там находится, например кошелек, документы приложения или медиатеку."+ }+ }+ }+ }+ },+ "sv" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lämnar %lld mapp här orörd eftersom Peel skyddar det som ligger i den, till exempel en plånbok, en apps dokument eller ett bibliotek."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel lämnar %lld mappar här orörda eftersom Peel skyddar det som ligger i dem, till exempel en plånbok, en apps dokument eller ett bibliotek."+ }+ }+ }+ }+ },+ "tr" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel buradaki %lld klasörü yerinde bırakır, çünkü içindekileri korur: örneğin bir cüzdan, bir uygulamanın belgeleri veya bir fotoğraf, müzik ya da video arşivi."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel buradaki %lld klasörü yerinde bırakır, çünkü bu klasörlerin içindekileri korur: örneğin bir cüzdan, bir uygulamanın belgeleri veya bir fotoğraf, müzik ya da video arşivi."+ }+ }+ }+ }+ },+ "uk" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папки звідси, бо захищає те, що в них є, як-от гаманець, документи програми або медіатеку."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папок звідси, бо захищає те, що в них є, як-от гаманець, документи програми або медіатеку."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папку звідси, бо захищає те, що в ній є, як-от гаманець, документи програми або медіатеку."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel не переміщує %lld папки звідси, бо захищає те, що в них є, як-от гаманець, документи програми або медіатеку."+ }+ }+ }+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel不会触碰此处的%lld个文件夹,因为其中的内容受Peel保护,例如钱包、App的文稿或资料库。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel將這裡的%lld個檔案夾原地保留,因為它會保護其中的內容,例如錢包、App的文件或資料庫。"+ }+ }+ }+ },"Peel leaves ^[%lld folder](inflect: true) here to the Developer page, which knows which part of each is only a cache." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/ProtectedObjects.swift b/Packages/PeelCore/Sources/PeelCore/Removal/ProtectedObjects.swiftindex 3dbd8ad0..a04026bb 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/ProtectedObjects.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/ProtectedObjects.swift@@ -36,14 +36,16 @@ struct ProtectedObjects: Sendable {self.folders = Set(folders.flatMap(Self.objects))}- /// False when the item is a protected folder, holds a tree, or sits inside a tree. `located` is the path as- /// the kernel names it, so its folders are the real ones. An item that does not exist yet has no inode: only- /// the folders above it are checked, and the rules that read paths judge the rest.- func allows(_ located: String) -> Bool {+ /// Why the item may not be removed: it is a tree or sits inside one, it is a protected folder, or it holds a+ /// tree. `located` is the path as the kernel names it, so its folders are the real ones. An item that does not+ /// exist yet has no inode: only the folders above it are checked, and the rules that read paths judge the rest.+ func refusal(of located: String) -> GuardRefusal? {if let item = Self.object(at: located, followingLinks: false) {- guard !trees.contains(item), !folders.contains(item), !holders.contains(item) else { return false }+ if trees.contains(item) { return .protectedLocation }+ if folders.contains(item) { return .staysItself }+ if holders.contains(item) { return .holdsProtectedData }}- return !isInsideATree((located as NSString).deletingLastPathComponent)+ return isInsideATree((located as NSString).deletingLastPathComponent) ? .protectedLocation : nil}private func isInsideATree(_ folder: String) -> Bool {diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swift b/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swiftindex ef4edfeb..3da78fb5 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swift@@ -2,6 +2,26 @@ import Darwinimport Foundationinternal import PeelPrivileged+/// Why `RemovalGuard` refuses to move an item.+public enum GuardRefusal: String, Sendable, Hashable {+ /// The exclusions have not been read yet, or cannot be read, so nothing moves.+ case exclusionsNotKnown+ /// The person excluded it, or something inside it.+ case excluded+ /// A folder that stays itself, such as the home folder or one Space empties, though what is inside may go.+ case staysItself+ /// It is part of macOS, or it sits inside something Peel protects.+ case protectedLocation+ /// Something Peel protects is inside, such as a keychain, a wallet's keys, or a browser profile with a wallet.+ case holdsProtectedData+ /// A sandboxed app's documents are inside.+ case holdsDocuments+ /// A photo, music, or video library is inside.+ case holdsALibrary+ /// Work an app keeps only in a cache folder is inside, such as an editor's local history.+ case holdsWorkKeptInACache+}+struct RemovalGuard: Sendable {/// Nothing inside these may be removed. `/Library/Updates` is where Software Update stages macOS updates./// Lower-cased, because the spellings they are compared against are.@@ -47,13 +67,17 @@ struct RemovalGuard: Sendable {}func allowsRemoval(of url: URL) -> Bool {- allows(url, isALink: nil)+ refusal(of: url) == nil+ }++ func refusal(of url: URL) -> GuardRefusal? {+ refusal(of: url, isALink: nil)}/// Whether `trashed` may go back to `destination`, which is judged as a removal from there would be, for the/// kind of item `trashed` is: nothing is there yet to tell.func allowsPuttingBack(_ trashed: URL, at destination: URL) -> Bool {- allows(destination, isALink: Self.isALink(trashed.path(percentEncoded: false)))+ refusal(of: destination, isALink: Self.isALink(trashed.path(percentEncoded: false))) == nil}/// True for the lower-cased spelling of a link directly in a folder command-line tools are linked into.@@ -66,51 +90,58 @@ struct RemovalGuard: Sendable {return lstat(path, &info) == 0 && info.st_mode & S_IFMT == S_IFLNK}- private func allows(_ url: URL, isALink known: Bool?) -> Bool {- guard url.isFileURL, exclusions.isKnown else { return false }+ private func refusal(of url: URL, isALink known: Bool?) -> GuardRefusal? {+ guard url.isFileURL else { return .protectedLocation }+ guard exclusions.isKnown else { return .exclusionsNotKnown }let path = Self.normalized(url.path(percentEncoded: false))// A path can be written several ways (`/var` for `/private/var`, a different case), and a Put Back// destination does not exist yet. `located` names the part that exists the way the kernel does.- guard let located = PathPattern.located(path) else { return false }+ guard let located = PathPattern.located(path) else { return .protectedLocation }let isALink = known ?? Self.isALink(located)// The kernel's own name for the item is judged too: `/.vol/<device>/<inode>` names a file by its numbers// alone and shows none of the folders it sits in.let names = Set([path, located, PathPattern.kernelName(of: path, followingLinks: false)].compactMap(\.self))for name in names {let named = URL(filePath: name)- guard !exclusions.excludes(named), !exclusions.holds(named) else { return false }- guard protectedObjects.allows(name) else { return false }+ guard !exclusions.excludes(named), !exclusions.holds(named) else { return .excluded }+ if let refusal = protectedObjects.refusal(of: name) { return refusal }// The rules the helper follows. They protect every account's keychain and mail, not only those of the// account Peel runs in.- guard !ProtectedData.refuses(name, home: home), !ProtectedData.holds(name, home: home) else { return false }+ guard !ProtectedData.refuses(name, home: home) else { return .protectedLocation }+ guard !ProtectedData.holds(name, home: home) else { return .holdsProtectedData }}for spelling in names.reduce(into: Set<String>(), { $0.formUnion(PathPattern.spellings(of: $1)) }) {let isUnderAPrefix = Self.protectedPrefixes.contains { PathComponents.isPath(spelling, inside: $0) }- guard !protectedPaths.contains(spelling), !isUnderAPrefix || Self.isAToolsLink(spelling, isALink: isALink) else {- return false- }+ guard !protectedPaths.contains(spelling) else { return .staysItself }+ guard !isUnderAPrefix || Self.isAToolsLink(spelling, isALink: isALink) else { return .protectedLocation }let parts = PathComponents.of(spelling)- guard !protectedTrees.contains(where: { parts.starts(with: $0) }) else { return false }+ guard !protectedTrees.contains(where: { parts.starts(with: $0) }) else { return .protectedLocation }// Also refuse a folder with a protected tree inside, since removing it would take the tree along.- guard !protectedTrees.contains(where: { $0.count > parts.count && $0.starts(with: parts) }) else { return false }- guard !Self.isInsideAUserLibrary(spelling), !ProtectedData.isGlobalPreferences(spelling) else { return false }- guard !ProtectedData.isInAnApplesGroupContainer(spelling) else { return false }+ guard !protectedTrees.contains(where: { $0.count > parts.count && $0.starts(with: parts) }) else {+ return .holdsProtectedData+ }+ guard !Self.isInsideAUserLibrary(spelling), !ProtectedData.isGlobalPreferences(spelling) else {+ return .protectedLocation+ }+ guard !ProtectedData.isInAnApplesGroupContainer(spelling) else { return .protectedLocation }// A sandboxed app's own documents sit inside its container, beside the settings.- guard !ProtectedData.isInAContainersDocuments(spelling) else { return false }+ guard !ProtectedData.isInAContainersDocuments(spelling) else { return .protectedLocation }}var info = stat()- guard lstat(path, &info) != 0 || info.st_flags & UInt32(SF_RESTRICTED) == 0 else { return false }+ guard lstat(path, &info) != 0 || info.st_flags & UInt32(SF_RESTRICTED) == 0 else { return .protectedLocation }// Last, since each reads what is a level or two inside the folder, and a name refused above needs none of it.for name in names {// An uninstall lists a whole container, and the documents inside would go with it. Space lists a// vendor's whole cache folder, and work kept only there (an IDE's local history) would go with it.- guard !ProtectedData.holdsAContainersDocuments(name), !ProtectedData.holdsWorkKeptInACache(name) else { return false }- guard !ProtectedData.holdsALibrary(name), !ProtectedData.holdsABrowserWallet(name) else { return false }+ guard !ProtectedData.holdsAContainersDocuments(name) else { return .holdsDocuments }+ guard !ProtectedData.holdsWorkKeptInACache(name) else { return .holdsWorkKeptInACache }+ guard !ProtectedData.holdsALibrary(name) else { return .holdsALibrary }+ guard !ProtectedData.holdsABrowserWallet(name) else { return .holdsProtectedData }}- return true+ return nil}/// True for anything at or inside a photo, music or video library package. The path arrives lower-cased.diff --git a/Packages/PeelCore/Sources/PeelCore/Space/SpaceRemoval.swift b/Packages/PeelCore/Sources/PeelCore/Space/SpaceRemoval.swiftindex 2ec08204..ebf9cf8b 100644--- a/Packages/PeelCore/Sources/PeelCore/Space/SpaceRemoval.swift+++ b/Packages/PeelCore/Sources/PeelCore/Space/SpaceRemoval.swift@@ -21,6 +21,9 @@ public enum SpaceRemoval {public var heldBack: [URL: HoldBack] = [:]/// The removable items only an administrator can move, which go through the helper.public var needsTheHelper: Set<URL> = []+ /// What the guard never moves from here, each with its reason, so the page can say why the area holds more+ /// than it offers. What the person excluded is left out, as it is everywhere.+ public var refused: [URL: GuardRefusal] = [:]/// The open apps whose folders are left alone, each named once and sorted, by the names the user knows, not/// the folder names. One app can write to several folders, by its name and by its identifier.@@ -70,7 +73,7 @@ public enum SpaceRemoval {}return Plan(removable: children.removable, inUse: children.inUse, leftToDeveloper: children.leftToDeveloper, sizes: sizes,- heldBack: heldBack, needsTheHelper: needsTheHelper+ heldBack: heldBack, needsTheHelper: needsTheHelper, refused: children.refused)}@@ -103,11 +106,12 @@ public enum SpaceRemoval {environment: SearchEnvironment,exclusions: Exclusions,running: [String: String]- ) -> (removable: [URL], inUse: [(url: URL, name: String)], leftToDeveloper: [URL]) {+ ) -> (removable: [URL], inUse: [(url: URL, name: String)], leftToDeveloper: [URL], refused: [URL: GuardRefusal]) {let removalGuard = RemovalGuard(environment: environment, exclusions: exclusions)var removable: [URL] = []var inUse: [(url: URL, name: String)] = []var leftToDeveloper: [URL] = []+ var refused: [URL: GuardRefusal] = [:]let systemCaches = SystemCaches(environment: environment)let filesOnly = Set(item.onlyFilesIn.map(PathPattern.comparablePath))func sort(_ folder: URL, leaving owned: [[String]], owner: String?) {@@ -123,7 +127,22 @@ public enum SpaceRemoval {sort(child, leaving: listed.map { Array($0.dropFirst()) }, owner: owner)continue}- guard removalGuard.allowsRemoval(of: child) else { continue }+ switch removalGuard.refusal(of: child) {+ case .excluded, .exclusionsNotKnown:+ continue+ // Developer lists the parts of a tool's folder that are only a cache, and never the rest.+ case _? where !listed.isEmpty:+ leftToDeveloper.append(child)+ continue+ // A folder that stays itself is one Space empties on its own page, or one macOS expects to find.+ case .staysItself:+ continue+ case let refusal?:+ refused[child] = refusal+ continue+ case nil:+ break+ }if let app {inUse.append((child, app))} else if !listed.isEmpty {@@ -139,7 +158,7 @@ public enum SpaceRemoval {let owned = DeveloperCaches.foldersLeftToDeveloper(inside: url, home: environment.homeDirectory)sort(url, leaving: owned, owner: owner)}- return (removable, inUse, leftToDeveloper)+ return (removable, inUse, leftToDeveloper, refused)}/// Maps each name an open app answers to, normalized, to the app's display name. The names are the bundlediff --git a/Packages/PeelCore/Tests/PeelCoreTests/SpaceRemovalTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/SpaceRemovalTests.swiftindex 16093440..03c6952d 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/SpaceRemovalTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/SpaceRemovalTests.swift@@ -74,7 +74,11 @@ struct SpaceRemovalTests {let logged = await SpaceRemoval.plan(for: logs, environment: environment(directory), running: [:])#expect(named(caches.removable) == ["Google/Chrome"])- #expect(named(caches.leftToDeveloper) == ["Caches/Coursier", "Google/AndroidStudio2025.3.1"])+ #expect(+ named(caches.leftToDeveloper)+ == ["Caches/Coursier", "Google/AndroidStudio2025.3.1", "Google/AndroidStudio2026.1.4"]+ )+ #expect(caches.refused.isEmpty)#expect(named(logged.removable) == ["Google/GoogleUpdater"])#expect(named(logged.leftToDeveloper) == ["Google/AndroidStudio2026.1.4"])}@@ -165,6 +169,7 @@ struct SpaceRemovalTests {let plan = await SpaceRemoval.plan(for: shared, environment: environment(directory), running: [:])#expect(plan.removable.map(\.lastPathComponent).sorted() == ["Example_2026-09-28.ips", "org.example.tool"])+ #expect(plan.refused.isEmpty)}@Test(.permissionsHold) func whatOnlyAnAdministratorCanMoveGoesThroughTheHelper() async throws {@@ -365,6 +370,26 @@ struct SpaceRemovalTests {#expect(plan.removable.map(\.lastPathComponent) == ["com.gone.app"])}+ @Test func saysWhyItLeavesAloneWhatTheGuardRefuses() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("home/Library/Caches/org.example.Editor/LocalHistory/changes.storageData")+ try directory.file("home/Library/Caches/org.example.Kept/LocalHistory/changes.storageData")+ try directory.file("home/Library/Caches/JetBrains/IntelliJIdea2026.2/LocalHistory/changes.storageData")+ try directory.file("home/Library/Caches/JetBrains/IntelliJIdea2026.2/caches/index.db")+ try directory.file("home/Library/Caches/com.gone.app/old.db")+ let kept = directory.url.appending(path: "home/Library/Caches/org.example.Kept", directoryHint: .isDirectory)++ let plan = await SpaceRemoval.plan(+ for: item(directory), environment: environment(directory), exclusions: Exclusions(paths: [kept]),+ running: [:]+ )++ #expect(plan.removable.map(\.lastPathComponent) == ["com.gone.app"])+ #expect(plan.leftToDeveloper.map(\.lastPathComponent) == ["JetBrains"])+ let refused = plan.refused.map { "\($0.key.lastPathComponent): \($0.value)" }+ #expect(refused == ["org.example.Editor: holdsWorkKeptInACache"])+ }+@Test func neverOffersTheFolderItself() async throws {let directory = try TemporaryDirectory()try directory.file("home/Library/Caches/com.gone.app/old.db")diff --git a/Peel/Views/Space/SpaceDetailView.swift b/Peel/Views/Space/SpaceDetailView.swiftindex 9991f0fb..f7231bd8 100644--- a/Peel/Views/Space/SpaceDetailView.swift+++ b/Peel/Views/Space/SpaceDetailView.swift@@ -127,7 +127,7 @@ struct SpaceDetailView: View {)}} footer: {- if !plan.appsToQuit.isEmpty || !plan.leftToDeveloper.isEmpty {+ if !plan.appsToQuit.isEmpty || !plan.leftToDeveloper.isEmpty || !plan.refused.isEmpty {VStack(alignment: .leading, spacing: 6) {if !plan.appsToQuit.isEmpty {Text("Peel doesn’t include folders an open app is still writing to: \(plan.appsToQuit.formatted(.list(type: .and))). Quit an app to include its folders. Peel can only tell a folder is an open app’s when it carries the app’s own name or identifier, not its maker’s.")@@ -135,6 +135,13 @@ struct SpaceDetailView: View {if !plan.leftToDeveloper.isEmpty {Text("Peel leaves ^[\(plan.leftToDeveloper.count) folder](inflect: true) here to the Developer page, which knows which part of each is only a cache.")}+ let keepingWork = plan.refused.values.count { $0 == .holdsWorkKeptInACache }+ if keepingWork > 0 {+ Text("Peel leaves ^[\(keepingWork) folder](inflect: true) here alone because an app keeps work there that exists nowhere else, such as an editor’s local history.")+ }+ if plan.refused.count > keepingWork {+ Text("Peel leaves ^[\(plan.refused.count - keepingWork) folder](inflect: true) here alone because it protects what is there, such as a wallet, an app’s documents, or a library.")+ }}.font(.callout).foregroundStyle(.secondary)