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
Leave alone what another app keeps in step with other devices
Țugui Dragoșd6a3ce0f38e6
diff --git a/AGENTS.md b/AGENTS.mdindex 93f6fcb4..8a263b70 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -74,7 +74,8 @@ Tests enforce these rules. If a change makes one of them fail, the rule is right`HOMEBREW_NO_INSTALL_CLEANUP`, so an upgrade never cleans up on its own, and when a `brew.env` file turns that backon (`Homebrew.overrides()`), Peel leaves upgrades to Terminal.- **`RemovalGuard` refuses what nothing can bring back**, in every account on the Mac: iCloud Drive and other cloud- storage, the Trash itself, keychains and the keys and credentials `ProtectedData.homeKeys` names, the wallet keys+ storage, the folders another app keeps in step with other devices (`SyncedFolders`), the Trash itself, keychains+ and the keys and credentials `ProtectedData.homeKeys` names, the wallet keys`ProtectedData.walletKeys` names, a browser profile holding a wallet extension's vault, Mail, Messages, Safari,Contacts, Calendars and Apple's other stores of personal data, every group container of Apple's own, work notsaved yet, photo, music, and video libraries, a sandboxed app's `Documents`, the folders every account startsdiff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex e947a2de..20b4caf4 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -23947,108 +23947,108 @@}}},- "Choose a folder in your home folder, /Users/Shared, or a disk Peel can write to. iCloud Drive, app data, the Music and TV apps’ media folders, and system folders aren’t scanned.\n\n%@" : {+ "Choose a folder in your home folder, /Users/Shared, or a disk Peel can write to. iCloud Drive and other folders that sync to your other devices, app data, the Music and TV apps’ media folders, and system folders aren’t scanned.\n\n%@" : {"localizations" : {"cs" : {"stringUnit" : {"state" : "translated",- "value" : "Zvolte složku ve své domovské složce, ve složce /Users/Shared nebo na disku, na který může Peel zapisovat. iCloud Drive, data aplikací, složky médií aplikací Hudba a TV a systémové složky se neprohledávají.\n\n%@"+ "value" : "Zvolte složku ve své domovské složce, ve složce /Users/Shared nebo na disku, na který může Peel zapisovat. iCloud Drive a další složky, které se synchronizují s vašimi ostatními zařízeními, data aplikací, složky médií aplikací Hudba a TV a systémové složky se neprohledávají.\n\n%@"}},"de" : {"stringUnit" : {"state" : "translated",- "value" : "Wähle einen Ordner in deinem Benutzerordner, in /Users/Shared oder auf einem Volume, auf das Peel schreiben kann. iCloud Drive, App-Daten, die Medienordner der Apps „Musik“ und „TV“ sowie Systemordner werden nicht gescannt.\n\n%@"+ "value" : "Wähle einen Ordner in deinem Benutzerordner, in /Users/Shared oder auf einem Volume, auf das Peel schreiben kann. iCloud Drive und andere Ordner, die mit deinen anderen Geräten synchronisiert werden, App-Daten, die Medienordner der Apps „Musik“ und „TV“ sowie Systemordner werden nicht gescannt.\n\n%@"}},"es" : {"stringUnit" : {"state" : "translated",- "value" : "Elige una carpeta que esté en tu carpeta de inicio, en /Users/Shared o en un disco en el que Peel pueda escribir. No se analizan iCloud Drive, los datos de las apps, las carpetas multimedia de las apps Música y TV ni las carpetas del sistema.\n\n%@"+ "value" : "Elige una carpeta que esté en tu carpeta de inicio, en /Users/Shared o en un disco en el que Peel pueda escribir. No se analizan iCloud Drive, las demás carpetas que se sincronizan con tus otros dispositivos, los datos de las apps, las carpetas multimedia de las apps Música y TV ni las carpetas del sistema.\n\n%@"}},"fr" : {"stringUnit" : {"state" : "translated",- "value" : "Choisissez un dossier situé dans votre dossier de départ, dans /Users/Shared ou sur un disque où Peel peut écrire. iCloud Drive, les données des apps, les dossiers multimédias des apps Musique et TV, et les dossiers système ne sont pas analysés.\n\n%@"+ "value" : "Choisissez un dossier situé dans votre dossier de départ, dans /Users/Shared ou sur un disque où Peel peut écrire. iCloud Drive et les autres dossiers synchronisés avec vos autres appareils, les données des apps, les dossiers multimédias des apps Musique et TV, et les dossiers système ne sont pas analysés.\n\n%@"}},"it" : {"stringUnit" : {"state" : "translated",- "value" : "Scegli una cartella nella tua cartella Inizio, in /Users/Shared o in un disco su cui Peel può scrivere. iCloud Drive, i dati delle app, le cartelle multimediali delle app Musica e TV e le cartelle di sistema non vengono analizzati.\n\n%@"+ "value" : "Scegli una cartella nella tua cartella Inizio, in /Users/Shared o in un disco su cui Peel può scrivere. iCloud Drive e le altre cartelle che si sincronizzano con gli altri tuoi dispositivi, i dati delle app, le cartelle multimediali delle app Musica e TV e le cartelle di sistema non vengono analizzati.\n\n%@"}},"ja" : {"stringUnit" : {"state" : "translated",- "value" : "ホームフォルダ、/Users/Shared、またはPeelが書き込めるディスクにあるフォルダを選択してください。iCloud Drive、アプリのデータ、ミュージックアプリとTVアプリのメディアフォルダ、システムフォルダはスキャンしません。\n\n%@"+ "value" : "ホームフォルダ、/Users/Shared、またはPeelが書き込めるディスクにあるフォルダを選択してください。iCloud Drive、ほかのデバイスに同期されているその他のフォルダ、アプリのデータ、ミュージックアプリとTVアプリのメディアフォルダ、システムフォルダはスキャンしません。\n\n%@"}},"ko" : {"stringUnit" : {"state" : "translated",- "value" : "홈 폴더, /Users/Shared 또는 Peel이 쓸 수 있는 디스크에 있는 폴더를 선택하십시오. iCloud Drive, 앱 데이터, 음악 앱과 TV 앱의 미디어 폴더, 시스템 폴더는 스캔하지 않습니다.\n\n%@"+ "value" : "홈 폴더, /Users/Shared 또는 Peel이 쓸 수 있는 디스크에 있는 폴더를 선택하십시오. 다른 기기와 동기화되는 iCloud Drive 및 기타 폴더, 앱 데이터, 음악 앱과 TV 앱의 미디어 폴더, 시스템 폴더는 스캔하지 않습니다.\n\n%@"}},"nl" : {"stringUnit" : {"state" : "translated",- "value" : "Kies een map in je thuismap, in /Users/Shared of op een schijf waarop Peel kan schrijven. iCloud Drive, appgegevens, de mediamappen van de apps Muziek en TV en systeemmappen worden niet gescand.\n\n%@"+ "value" : "Kies een map in je thuismap, in /Users/Shared of op een schijf waarop Peel kan schrijven. iCloud Drive en andere mappen die met je andere apparaten worden gesynchroniseerd, appgegevens, de mediamappen van de apps Muziek en TV en systeemmappen worden niet gescand.\n\n%@"}},"pl" : {"stringUnit" : {"state" : "translated",- "value" : "Wybierz folder w swoim folderze domowym, w /Users/Shared lub na dysku, na którym Peel może zapisywać. iCloud Drive, dane aplikacji, foldery multimediów aplikacji Muzyka i TV oraz foldery systemowe nie są skanowane.\n\n%@"+ "value" : "Wybierz folder w swoim folderze domowym, w /Users/Shared lub na dysku, na którym Peel może zapisywać. iCloud Drive i inne foldery synchronizowane z Twoimi pozostałymi urządzeniami, dane aplikacji, foldery multimediów aplikacji Muzyka i TV oraz foldery systemowe nie są skanowane.\n\n%@"}},"pt" : {"stringUnit" : {"state" : "translated",- "value" : "Escolha uma pasta dentro da sua pasta pessoal, em /Users/Shared ou em um disco no qual o Peel possa gravar. O iCloud Drive, os dados de apps, as pastas de mídia dos apps Música e TV e as pastas do sistema não são analisados.\n\n%@"+ "value" : "Escolha uma pasta dentro da sua pasta pessoal, em /Users/Shared ou em um disco no qual o Peel possa gravar. O iCloud Drive e outras pastas sincronizadas com os seus outros dispositivos, os dados de apps, as pastas de mídia dos apps Música e TV e as pastas do sistema não são analisados.\n\n%@"}},"ro" : {"stringUnit" : {"state" : "translated",- "value" : "Alegeți un dosar din dosarul dvs. de reședință, din /Users/Shared sau de pe un disc pe care Peel poate scrie. iCloud Drive, datele aplicațiilor, dosarele media ale aplicațiilor Muzică și TV și dosarele de sistem nu sunt scanate.\n\n%@"+ "value" : "Alegeți un dosar din dosarul dvs. de reședință, din /Users/Shared sau de pe un disc pe care Peel poate scrie. iCloud Drive și alte dosare care se sincronizează pe celelalte dispozitive ale dvs., datele aplicațiilor, dosarele media ale aplicațiilor Muzică și TV și dosarele de sistem nu sunt scanate.\n\n%@"}},"ru" : {"stringUnit" : {"state" : "translated",- "value" : "Выберите папку внутри Вашей папки пользователя, в /Users/Shared или на диске, куда Peel может записывать. iCloud Drive, данные приложений, папки медиафайлов приложений «Музыка» и «TV», а также системные папки не сканируются.\n\n%@"+ "value" : "Выберите папку внутри Вашей папки пользователя, в /Users/Shared или на диске, куда Peel может записывать. iCloud Drive и другие папки, которые синхронизируются с другими Вашими устройствами, данные приложений, папки медиафайлов приложений «Музыка» и «TV», а также системные папки не сканируются.\n\n%@"}},"sv" : {"stringUnit" : {"state" : "translated",- "value" : "Välj en mapp i din hemmapp, i /Users/Shared eller på en skiva som Peel kan skriva till. iCloud Drive, appdata, mediemapparna för apparna Musik och TV samt systemmappar skannas inte.\n\n%@"+ "value" : "Välj en mapp i din hemmapp, i /Users/Shared eller på en skiva som Peel kan skriva till. iCloud Drive och andra mappar som synkroniseras till dina andra enheter, appdata, mediemapparna för apparna Musik och TV samt systemmappar skannas inte.\n\n%@"}},"tr" : {"stringUnit" : {"state" : "translated",- "value" : "Ana klasörünüzde, /Users/Shared içinde veya Peel’in yazabildiği bir diskte bir klasör seçin. iCloud Drive, uygulama verileri, Müzik ve TV uygulamalarının ortam klasörleri ve sistem klasörleri taranmaz.\n\n%@"+ "value" : "Ana klasörünüzde, /Users/Shared içinde veya Peel’in yazabildiği bir diskte bir klasör seçin. iCloud Drive, diğer aygıtlarınızla eşzamanlanan başka klasörler, uygulama verileri, Müzik ve TV uygulamalarının ortam klasörleri ve sistem klasörleri taranmaz.\n\n%@"}},"uk" : {"stringUnit" : {"state" : "translated",- "value" : "Виберіть папку у своїй Домівці, у /Users/Shared або на диску, на який Peel може записувати. iCloud Drive, дані програм, папки з медіафайлами програм «Музика» і «TV» та системні папки не скануються.\n\n%@"+ "value" : "Виберіть папку у своїй Домівці, у /Users/Shared або на диску, на який Peel може записувати. iCloud Drive та інші папки, які синхронізуються з іншими вашими пристроями, дані програм, папки з медіафайлами програм «Музика» і «TV» та системні папки не скануються.\n\n%@"}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "请选取位于你的个人文件夹、/Users/Shared或Peel可写入的磁盘中的文件夹。iCloud云盘、App数据、“音乐”和“TV”App的媒体文件夹以及系统文件夹都不会被扫描。\n\n%@"+ "value" : "请选取位于你的个人文件夹、/Users/Shared或Peel可写入的磁盘中的文件夹。iCloud云盘和其他同步到你的其他设备的文件夹、App数据、“音乐”和“TV”App的媒体文件夹以及系统文件夹都不会被扫描。\n\n%@"}},"zh-Hant" : {"stringUnit" : {"state" : "translated",- "value" : "請選擇個人專屬檔案夾、/Users/Shared或Peel可寫入之磁碟中的檔案夾。「iCloud雲碟」、App資料、「音樂」和「TV」App的媒體檔案夾,以及系統檔案夾都不會掃描。\n\n%@"+ "value" : "請選擇個人專屬檔案夾、/Users/Shared或Peel可寫入之磁碟中的檔案夾。「iCloud雲碟」和其他會與你的其他裝置同步的檔案夾、App資料、「音樂」和「TV」App的媒體檔案夾,以及系統檔案夾都不會掃描。\n\n%@"}}}@@ -60785,108 +60785,108 @@}}},- "It is in iCloud Drive or another cloud folder, which Peel leaves to the app that syncs it." : {+ "It is in a folder that syncs to your other devices through iCloud or another app, which Peel leaves to that app." : {"localizations" : {"cs" : {"stringUnit" : {"state" : "translated",- "value" : "Je na iCloud Drivu nebo v jiné cloudové složce, kterou Peel přenechává aplikaci, jež ji synchronizuje."+ "value" : "Je ve složce, která se synchronizuje přes iCloud nebo jinou aplikaci s vašimi ostatními zařízeními a kterou Peel přenechává této aplikaci."}},"de" : {"stringUnit" : {"state" : "translated",- "value" : "Dieser Ordner liegt in iCloud Drive oder einem anderen Cloud-Ordner, den Peel der App überlässt, die ihn synchronisiert."+ "value" : "Dieser Ordner liegt in einem Ordner, der über iCloud oder eine andere App mit deinen anderen Geräten synchronisiert wird und den Peel dieser App überlässt."}},"es" : {"stringUnit" : {"state" : "translated",- "value" : "Está en iCloud Drive o en otra carpeta en la nube, que Peel deja en manos de la app que la sincroniza."+ "value" : "Está en una carpeta que se sincroniza con tus otros dispositivos a través de iCloud o de otra app, y que Peel deja en manos de esa app."}},"fr" : {"stringUnit" : {"state" : "translated",- "value" : "Il se trouve dans iCloud Drive ou dans un autre dossier dans le cloud, que Peel laisse à l’app qui le synchronise."+ "value" : "Il se trouve dans un dossier synchronisé avec vos autres appareils via iCloud ou une autre app, que Peel laisse à cette app."}},"it" : {"stringUnit" : {"state" : "translated",- "value" : "Si trova in iCloud Drive o in un’altra cartella cloud, che Peel lascia all’app che la sincronizza."+ "value" : "Si trova in una cartella che si sincronizza con gli altri tuoi dispositivi tramite iCloud o un’altra app, e che Peel lascia a quell’app."}},"ja" : {"stringUnit" : {"state" : "translated",- "value" : "iCloud Driveまたはほかのクラウドフォルダにあり、Peelはそれを同期しているアプリに任せています。"+ "value" : "iCloudまたはほかのアプリを通じてほかのデバイスに同期されているフォルダにあり、Peelはそれをそのアプリに任せています。"}},"ko" : {"stringUnit" : {"state" : "translated",- "value" : "iCloud Drive나 다른 클라우드 폴더에 있습니다. Peel은 이러한 폴더를 동기화하는 앱에 맡깁니다."+ "value" : "iCloud나 다른 앱을 통해 다른 기기와 동기화되는 폴더에 있습니다. Peel은 이러한 폴더를 해당 앱에 맡깁니다."}},"nl" : {"stringUnit" : {"state" : "translated",- "value" : "Het staat op iCloud Drive of in een andere cloudmap, die Peel overlaat aan de app die de map synchroniseert."+ "value" : "Het staat in een map die wordt gesynchroniseerd met je andere apparaten via iCloud of een andere app, en die Peel overlaat aan die app."}},"pl" : {"stringUnit" : {"state" : "translated",- "value" : "Jest na iCloud Drive lub w innym folderze w chmurze, który Peel zostawia aplikacji, która go synchronizuje."+ "value" : "Jest w folderze synchronizowanym z Twoimi pozostałymi urządzeniami przez iCloud lub inną aplikację, który Peel zostawia tej aplikacji."}},"pt" : {"stringUnit" : {"state" : "translated",- "value" : "Está no iCloud Drive ou em outra pasta na nuvem, que o Peel deixa para o app que a sincroniza."+ "value" : "Está em uma pasta que é sincronizada com os seus outros dispositivos por meio do iCloud ou de outro app, e o Peel a deixa para esse app."}},"ro" : {"stringUnit" : {"state" : "translated",- "value" : "Se află pe iCloud Drive sau într‑un alt dosar din cloud, pe care Peel îl lasă în seama aplicației care îl sincronizează."+ "value" : "Se află într‑un dosar care se sincronizează pe celelalte dispozitive ale dvs. prin iCloud sau printr‑o altă aplicație, pe care Peel îl lasă în seama aplicației respective."}},"ru" : {"stringUnit" : {"state" : "translated",- "value" : "Эта папка находится в iCloud Drive или другой облачной папке, и Peel оставляет ее приложению, которое ее синхронизирует."+ "value" : "Эта папка находится в папке, которая синхронизируется с другими Вашими устройствами через iCloud или другое приложение, и Peel оставляет ее этому приложению."}},"sv" : {"stringUnit" : {"state" : "translated",- "value" : "Den ligger i iCloud Drive eller i en annan molnmapp, som Peel lämnar åt appen som synkroniserar den."+ "value" : "Den ligger i en mapp som synkroniseras till dina andra enheter via iCloud eller en annan app, och som Peel lämnar åt den appen."}},"tr" : {"stringUnit" : {"state" : "translated",- "value" : "iCloud Drive’da veya başka bir bulut klasöründe; Peel bunu, onu eşzamanlayan uygulamaya bırakır."+ "value" : "iCloud veya başka bir uygulama aracılığıyla diğer aygıtlarınızla eşzamanlanan bir klasörde; Peel bunu o uygulamaya bırakır."}},"uk" : {"stringUnit" : {"state" : "translated",- "value" : "Папка лежить в iCloud Drive або в іншій хмарній папці, а такі папки Peel залишає програмі, яка їх синхронізує."+ "value" : "Папка лежить у папці, яка синхронізується з іншими вашими пристроями через iCloud або іншу програму, а таку папку Peel залишає тій програмі."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "它位于iCloud云盘或其他云文件夹中,Peel会将其交给负责同步的App处理。"+ "value" : "它位于一个通过iCloud或其他App同步到你的其他设备的文件夹中,Peel会将其交给该App处理。"}},"zh-Hant" : {"stringUnit" : {"state" : "translated",- "value" : "它位於「iCloud雲碟」或其他雲端檔案夾中,Peel會交由負責同步的App處理。"+ "value" : "它位於會透過iCloud或其他App與你的其他裝置同步的檔案夾中,Peel會交由該App處理。"}}}@@ -69421,108 +69421,108 @@}}},- "Left alone: this syncs with iCloud or another cloud service, and moving it to the Trash would also remove it from the cloud and from your other devices." : {+ "Left alone: this syncs to your other devices through iCloud or another app, and moving it to the Trash would also remove it from them." : {"localizations" : {"cs" : {"stringUnit" : {"state" : "translated",- "value" : "Nedotčeno: tato položka se synchronizuje s iCloudem nebo jinou cloudovou službou a přesunutím do koše byste ji odstranili také z cloudu i z vašich ostatních zařízení."+ "value" : "Nedotčeno: tato položka se synchronizuje přes iCloud nebo jinou aplikaci s vašimi ostatními zařízeními a přesunutím do koše byste ji odstranili také z nich."}},"de" : {"stringUnit" : {"state" : "translated",- "value" : "Unangetastet: Dieses Objekt wird mit iCloud oder einem anderen Cloud-Dienst synchronisiert, und es in den Papierkorb zu legen, würde es auch aus der Cloud und von deinen anderen Geräten entfernen."+ "value" : "Unangetastet: Dieses Objekt wird über iCloud oder eine andere App mit deinen anderen Geräten synchronisiert, und es in den Papierkorb zu legen, würde es auch von ihnen entfernen."}},"es" : {"stringUnit" : {"state" : "translated",- "value" : "No se toca: se sincroniza con iCloud o con otro servicio en la nube, y trasladarlo a la papelera también lo eliminaría de la nube y de tus otros dispositivos."+ "value" : "No se toca: se sincroniza con tus otros dispositivos a través de iCloud o de otra app, y trasladarlo a la papelera también lo eliminaría de ellos."}},"fr" : {"stringUnit" : {"state" : "translated",- "value" : "Laissé en place : cet élément est synchronisé avec iCloud ou avec un autre service de cloud, et le placer dans la corbeille le supprimerait aussi du cloud et de vos autres appareils."+ "value" : "Laissé en place : cet élément est synchronisé avec vos autres appareils via iCloud ou une autre app, et le placer dans la corbeille le supprimerait aussi de ces appareils."}},"it" : {"stringUnit" : {"state" : "translated",- "value" : "Resta dov’è: si sincronizza con iCloud o con un altro servizio cloud, e spostarlo nel Cestino lo rimuoverebbe anche dal cloud e dagli altri tuoi dispositivi."+ "value" : "Resta dov’è: si sincronizza con gli altri tuoi dispositivi tramite iCloud o un’altra app, e spostarlo nel Cestino lo rimuoverebbe anche da quei dispositivi."}},"ja" : {"stringUnit" : {"state" : "translated",- "value" : "対象外: これはiCloudまたはほかのクラウドサービスと同期されているため、ゴミ箱に入れると、クラウドからも、ほかのデバイスからも削除されます。"+ "value" : "対象外: これはiCloudまたはほかのアプリを通じてほかのデバイスに同期されているため、ゴミ箱に入れると、それらのデバイスからも削除されます。"}},"ko" : {"stringUnit" : {"state" : "translated",- "value" : "그대로 둠: 이 항목은 iCloud나 다른 클라우드 서비스와 동기화되며, 휴지통으로 이동하면 클라우드는 물론 다른 기기에서도 삭제됩니다."+ "value" : "그대로 둠: 이 항목은 iCloud나 다른 앱을 통해 다른 기기와 동기화되며, 휴지통으로 이동하면 해당 기기에서도 삭제됩니다."}},"nl" : {"stringUnit" : {"state" : "translated",- "value" : "Blijft staan: dit wordt gesynchroniseerd met iCloud of een andere cloudvoorziening, en als je het naar de prullenmand verplaatst, verdwijnt het ook uit de cloud en van je andere apparaten."+ "value" : "Blijft staan: dit wordt gesynchroniseerd met je andere apparaten via iCloud of een andere app, en als je het naar de prullenmand verplaatst, verdwijnt het ook van die apparaten."}},"pl" : {"stringUnit" : {"state" : "translated",- "value" : "Nietknięte: jest synchronizowane z iCloud lub z inną usługą w chmurze, a po przeniesieniu do Kosza zostałoby usunięte także z chmury i z Twoich pozostałych urządzeń."+ "value" : "Nietknięte: jest synchronizowane z Twoimi pozostałymi urządzeniami przez iCloud lub inną aplikację, a po przeniesieniu do Kosza zostałoby usunięte także z nich."}},"pt" : {"stringUnit" : {"state" : "translated",- "value" : "Preservado: este item é sincronizado com o iCloud ou com outro serviço de nuvem, e movê-lo para o Lixo também o removeria da nuvem e dos seus outros dispositivos."+ "value" : "Preservado: este item é sincronizado com os seus outros dispositivos por meio do iCloud ou de outro app, e movê-lo para o Lixo também o removeria deles."}},"ro" : {"stringUnit" : {"state" : "translated",- "value" : "Lăsat neatins: acest articol se sincronizează cu iCloud sau cu un alt serviciu cloud, iar mutarea lui în Coș l‑ar elimina și din cloud, și de pe celelalte dispozitive ale dvs."+ "value" : "Lăsat neatins: acest articol se sincronizează pe celelalte dispozitive ale dvs. prin iCloud sau printr‑o altă aplicație, iar mutarea lui în Coș l‑ar elimina și de pe acestea."}},"ru" : {"stringUnit" : {"state" : "translated",- "value" : "Остается на месте: этот объект синхронизируется с iCloud или другой облачной службой, и, если переместить его в Корзину, он будет удален также из облака и с других Ваших устройств."+ "value" : "Остается на месте: этот объект синхронизируется с другими Вашими устройствами через iCloud или другое приложение, и, если переместить его в Корзину, он будет удален также с этих устройств."}},"sv" : {"stringUnit" : {"state" : "translated",- "value" : "Rörs inte: det här synkroniseras med iCloud eller en annan molntjänst, och om det flyttades till papperskorgen skulle det också tas bort från molnet och från dina andra enheter."+ "value" : "Rörs inte: det här synkroniseras till dina andra enheter via iCloud eller en annan app, och om det flyttades till papperskorgen skulle det också tas bort från dem."}},"tr" : {"stringUnit" : {"state" : "translated",- "value" : "Yerinde kalır: bu, iCloud veya başka bir bulut servisiyle eşzamanlanıyor ve Çöp Sepeti’ne taşınırsa buluttan ve diğer aygıtlarınızdan da silinir."+ "value" : "Yerinde kalır: bu, iCloud veya başka bir uygulama aracılığıyla diğer aygıtlarınızla eşzamanlanıyor ve Çöp Sepeti’ne taşınırsa onlardan da silinir."}},"uk" : {"stringUnit" : {"state" : "translated",- "value" : "Лишається на місці: цей елемент синхронізується з iCloud або іншою хмарною службою, і переміщення в Смітник також прибрало б його з хмари й з інших ваших пристроїв."+ "value" : "Лишається на місці: цей елемент синхронізується з іншими вашими пристроями через iCloud або іншу програму, і переміщення в Смітник також прибрало б його з них."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "留在原处:此项与iCloud或其他云服务同步,如果将它移到废纸篓,它也会从云端和你的其他设备中删除。"+ "value" : "留在原处:此项通过iCloud或其他App同步到你的其他设备,如果将它移到废纸篓,它也会从这些设备中删除。"}},"zh-Hant" : {"stringUnit" : {"state" : "translated",- "value" : "原地保留:此項目會與iCloud或其他雲端服務同步,丟到「垃圾桶」也會將它從雲端和你的其他裝置上移除。"+ "value" : "原地保留:此項目會透過iCloud或其他App與你的其他裝置同步,丟到「垃圾桶」也會將它從這些裝置上移除。"}}}@@ -115987,108 +115987,108 @@}}},- "Peel won’t move this: it syncs with iCloud or another cloud service, and moving it to the Trash would also remove it from the cloud and from your other devices." : {+ "Peel won’t move this: it syncs to your other devices through iCloud or another app, and moving it to the Trash would also remove it from them." : {"localizations" : {"cs" : {"stringUnit" : {"state" : "translated",- "value" : "Peel tuto položku nepřesune: synchronizuje se s iCloudem nebo jinou cloudovou službou a přesunutím do koše byste ji odstranili také z cloudu i z vašich ostatních zařízení."+ "value" : "Peel tuto položku nepřesune: synchronizuje se přes iCloud nebo jinou aplikaci s vašimi ostatními zařízeními a přesunutím do koše byste ji odstranili také z nich."}},"de" : {"stringUnit" : {"state" : "translated",- "value" : "Peel verschiebt dies nicht: Es wird mit iCloud oder einem anderen Cloud-Dienst synchronisiert, und es in den Papierkorb zu legen, würde es auch aus der Cloud und von deinen anderen Geräten entfernen."+ "value" : "Peel verschiebt dies nicht: Es wird über iCloud oder eine andere App mit deinen anderen Geräten synchronisiert, und es in den Papierkorb zu legen, würde es auch von ihnen entfernen."}},"es" : {"stringUnit" : {"state" : "translated",- "value" : "Peel no trasladará esto: se sincroniza con iCloud o con otro servicio en la nube, y trasladarlo a la papelera también lo eliminaría de la nube y de tus otros dispositivos."+ "value" : "Peel no trasladará esto: se sincroniza con tus otros dispositivos a través de iCloud o de otra app, y trasladarlo a la papelera también lo eliminaría de ellos."}},"fr" : {"stringUnit" : {"state" : "translated",- "value" : "Peel refuse de déplacer cet élément : il est synchronisé avec iCloud ou avec un autre service de cloud, et le placer dans la corbeille le supprimerait aussi du cloud et de vos autres appareils."+ "value" : "Peel refuse de déplacer cet élément : il est synchronisé avec vos autres appareils via iCloud ou une autre app, et le placer dans la corbeille le supprimerait aussi de ces appareils."}},"it" : {"stringUnit" : {"state" : "translated",- "value" : "Peel non lo sposta: si sincronizza con iCloud o con un altro servizio cloud, e spostarlo nel Cestino lo rimuoverebbe anche dal cloud e dagli altri tuoi dispositivi."+ "value" : "Peel non lo sposta: si sincronizza con gli altri tuoi dispositivi tramite iCloud o un’altra app, e spostarlo nel Cestino lo rimuoverebbe anche da quei dispositivi."}},"ja" : {"stringUnit" : {"state" : "translated",- "value" : "Peelはこれを移動しません。iCloudまたはほかのクラウドサービスと同期されているため、ゴミ箱に入れると、クラウドからも、ほかのデバイスからも削除されます。"+ "value" : "Peelはこれを移動しません。iCloudまたはほかのアプリを通じてほかのデバイスに同期されているため、ゴミ箱に入れると、それらのデバイスからも削除されます。"}},"ko" : {"stringUnit" : {"state" : "translated",- "value" : "Peel이 이 항목을 이동하지 않습니다. iCloud나 다른 클라우드 서비스와 동기화되며, 휴지통으로 이동하면 클라우드는 물론 다른 기기에서도 삭제되기 때문입니다."+ "value" : "Peel이 이 항목을 이동하지 않습니다. iCloud나 다른 앱을 통해 다른 기기와 동기화되며, 휴지통으로 이동하면 해당 기기에서도 삭제되기 때문입니다."}},"nl" : {"stringUnit" : {"state" : "translated",- "value" : "Peel verplaatst dit niet: het wordt gesynchroniseerd met iCloud of een andere cloudvoorziening, en als je het naar de prullenmand verplaatst, verdwijnt het ook uit de cloud en van je andere apparaten."+ "value" : "Peel verplaatst dit niet: het wordt gesynchroniseerd met je andere apparaten via iCloud of een andere app, en als je het naar de prullenmand verplaatst, verdwijnt het ook van die apparaten."}},"pl" : {"stringUnit" : {"state" : "translated",- "value" : "Peel tego nie przeniesie: jest synchronizowane z iCloud lub z inną usługą w chmurze, a po przeniesieniu do Kosza zostałoby usunięte także z chmury i z Twoich pozostałych urządzeń."+ "value" : "Peel tego nie przeniesie: jest synchronizowane z Twoimi pozostałymi urządzeniami przez iCloud lub inną aplikację, a po przeniesieniu do Kosza zostałoby usunięte także z nich."}},"pt" : {"stringUnit" : {"state" : "translated",- "value" : "O Peel não vai mover isto: é sincronizado com o iCloud ou com outro serviço de nuvem, e movê-lo para o Lixo também o removeria da nuvem e dos seus outros dispositivos."+ "value" : "O Peel não vai mover isto: é sincronizado com os seus outros dispositivos por meio do iCloud ou de outro app, e movê-lo para o Lixo também o removeria deles."}},"ro" : {"stringUnit" : {"state" : "translated",- "value" : "Peel nu mută acest articol: se sincronizează cu iCloud sau cu un alt serviciu cloud, iar mutarea lui în Coș l‑ar elimina și din cloud, și de pe celelalte dispozitive ale dvs."+ "value" : "Peel nu mută acest articol: se sincronizează pe celelalte dispozitive ale dvs. prin iCloud sau printr‑o altă aplicație, iar mutarea lui în Coș l‑ar elimina și de pe acestea."}},"ru" : {"stringUnit" : {"state" : "translated",- "value" : "Peel не будет это перемещать: объект синхронизируется с iCloud или другой облачной службой, и, если переместить его в Корзину, он будет удален также из облака и с других Ваших устройств."+ "value" : "Peel не будет это перемещать: объект синхронизируется с другими Вашими устройствами через iCloud или другое приложение, и, если переместить его в Корзину, он будет удален также с этих устройств."}},"sv" : {"stringUnit" : {"state" : "translated",- "value" : "Peel flyttar inte det här: det synkroniseras med iCloud eller en annan molntjänst, och om det flyttades till papperskorgen skulle det också tas bort från molnet och från dina andra enheter."+ "value" : "Peel flyttar inte det här: det synkroniseras till dina andra enheter via iCloud eller en annan app, och om det flyttades till papperskorgen skulle det också tas bort från dem."}},"tr" : {"stringUnit" : {"state" : "translated",- "value" : "Peel bunu taşımaz: iCloud veya başka bir bulut servisiyle eşzamanlanıyor ve Çöp Sepeti’ne taşınırsa buluttan ve diğer aygıtlarınızdan da silinir."+ "value" : "Peel bunu taşımaz: iCloud veya başka bir uygulama aracılığıyla diğer aygıtlarınızla eşzamanlanıyor ve Çöp Sepeti’ne taşınırsa onlardan da silinir."}},"uk" : {"stringUnit" : {"state" : "translated",- "value" : "Peel не перемістить це: елемент синхронізується з iCloud або іншою хмарною службою, і переміщення в Смітник також прибрало б його з хмари й з інших ваших пристроїв."+ "value" : "Peel не перемістить це: елемент синхронізується з іншими вашими пристроями через iCloud або іншу програму, і переміщення в Смітник також прибрало б його з них."}},"zh-Hans" : {"stringUnit" : {"state" : "translated",- "value" : "Peel不会移动此项:它与iCloud或其他云服务同步,如果将它移到废纸篓,它也会从云端和你的其他设备中删除。"+ "value" : "Peel不会移动此项:它通过iCloud或其他App同步到你的其他设备,如果将它移到废纸篓,它也会从这些设备中删除。"}},"zh-Hant" : {"stringUnit" : {"state" : "translated",- "value" : "Peel不會移動此項目:它會與iCloud或其他雲端服務同步,丟到「垃圾桶」也會將它從雲端和你的其他裝置上移除。"+ "value" : "Peel不會移動此項目:它會透過iCloud或其他App與你的其他裝置同步,丟到「垃圾桶」也會將它從這些裝置上移除。"}}}diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Commands/FileCommands.swift b/Packages/PeelCore/Sources/PeelCommandLine/Commands/FileCommands.swiftindex 70b13509..b9e8ea5d 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Commands/FileCommands.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Commands/FileCommands.swift@@ -571,7 +571,7 @@ struct DuplicatesCommand: AsyncParsableCommand {}let rejected = urls.filter { !finder.canScan($0) }guard rejected.isEmpty else {- throw ValidationError("Peel can't scan \(rejected.map(Output.path).joined(separator: ", ")). Choose folders in your home folder, /Users/Shared, or a disk Peel can write to. iCloud Drive, app data, the Music and TV apps' media folders, apps and other packages, and system folders aren't scanned.")+ throw ValidationError("Peel can't scan \(rejected.map(Output.path).joined(separator: ", ")). Choose folders in your home folder, /Users/Shared, or a disk Peel can write to. iCloud Drive and other folders that sync to your other devices, app data, the Music and TV apps' media folders, apps and other packages, and system folders aren't scanned.")}}diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swiftindex 5c475619..380143d9 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift@@ -302,7 +302,7 @@ extension GuardRefusal {case .staysItself: "a folder that stays in place, though what is inside may go"case .protectedLocation: "part of macOS, or inside something Peel protects"case .holdsProtectedData: "holds something Peel protects, such as a keychain or a wallet"- case .inTheCloud: "syncs with iCloud or another cloud service, so moving it would remove it from every device"+ case .inTheCloud: "syncs to your other devices through iCloud or another app, so moving it would remove it from them too"case .holdsDocuments: "holds an app's documents"case .holdsALibrary: "holds a photo, music, or video library"case .holdsWorkKeptInACache: "holds work an app keeps nowhere else, such as an editor's local history"@@ -348,7 +348,7 @@ extension HoldBack {case .keptByMacOS: "a cache macOS keeps for itself"case .openedFromMail: "an attachment opened from Mail, which may be the only copy"case .crashReport: "a crash report, which the app's developer may still ask for"- case .inTheCloud: "syncs with iCloud or another cloud service, so moving it would remove it from every device"+ case .inTheCloud: "syncs to your other devices through iCloud or another app, so moving it would remove it from them too"case .openInAProgram: "open in a program right now, which may still be downloading it"case .changedRecently: "changed in the last day, so it may still be downloading"case .writtenRecently: "written to in the last 15 minutes, so a program may still be using it"@@ -364,7 +364,7 @@ extension ProjectArtifacts.Refusal {var summary: String {switch self {case .tooBroad: "a whole home folder or disk is too much to search"- case .inTheCloud: "it is in a cloud folder, which Peel leaves to the app that syncs it"+ case .inTheCloud: "it is in a folder that syncs to your other devices through iCloud or another app, which Peel leaves to that app"case .notAFolder: "it isn't a folder Peel can reach"case .inAPackage: "it is an app or another package, or inside one, and what is inside belongs to it"case .neverSearched: "it is a hidden folder, a Library, or a folder a tool fills, such as node_modules, or it sits inside one, where apps and tools keep what they install"diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swiftindex 0a5d9eb6..0418d9c1 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift@@ -906,6 +906,7 @@ public enum ProjectArtifacts {FileManager.default.fileExists(atPath: PathPattern.comparablePath(of: root), isDirectory: &isDirectory)&& isDirectory.boolValueguard isThere else { return .notAFolder }+ if SyncedFolders().syncsToOtherDevices(root) { return .inTheCloud }if root.isOrIsInsideAPackage { return .inAPackage }return PathComponents.of(kernelName).contains(where: isSkipped) ? .neverSearched : nil}@@ -1071,6 +1072,8 @@ public enum ProjectArtifacts {/// Lists `folder` and finds the artifacts in it, or nil when it cannot be listed.private static func look(in folder: URL, exclusions: Exclusions, listing: (URL) -> [URL]?) -> Look? {guard let entries = listing(folder) else { return nil }+ // What a folder another app keeps in step holds would go from the other devices too.+ guard !SyncedFolders.marksAFolder(entries) else { return Look(entries: [], found: []) }let names = Set(entries.map(\.lastPathComponent))var artifactNames: Set<String> = []var found: [Found] = []diff --git a/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swift b/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swiftindex a3985850..7aad7e15 100644--- a/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swift+++ b/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swift@@ -48,13 +48,13 @@ public struct DuplicateFinder: Sendable {/// Whether `folder` may be scanned: a folder in the home folder, in `/Users/Shared`, or on another writable/// volume. App data, system locations, and places whose files cannot be brought back are refused, such as- /// iCloud Drive, where a removal reaches every device.+ /// iCloud Drive or a folder another app keeps in step, where a removal reaches every device.public func canScan(_ folder: URL) -> Bool {let path = Self.path(of: folder.resolvingSymlinksInPath())let home = Self.path(of: homeDirectory)- guard !ProtectedData.refuses(path, home: home), !folder.isInTheCloud, !folder.isOrIsInsideAPackage else {- return false- }+ guard !ProtectedData.refuses(path, home: home), !SyncedFolders().syncsToOtherDevices(folder),+ !folder.isOrIsInsideAPackage+ else { return false }if path.isInside(home) {return !Self.managedFolders.contains { path.isInside(home + "/" + $0) }}diff --git a/Packages/PeelCore/Sources/PeelCore/Duplicates/FolderDuplicates.swift b/Packages/PeelCore/Sources/PeelCore/Duplicates/FolderDuplicates.swiftindex 9267c5b3..633f0797 100644--- a/Packages/PeelCore/Sources/PeelCore/Duplicates/FolderDuplicates.swift+++ b/Packages/PeelCore/Sources/PeelCore/Duplicates/FolderDuplicates.swift@@ -166,6 +166,11 @@ struct FolderDuplicates: Sendable {folder.isProject = truereturn folder}+ // What a folder another app keeps in step holds would go from the other devices too.+ guard !SyncedFolders.marksAFolder(contents.entries) else {+ folder.isWhole = false+ return folder+ }for entry in contents.entries {switch autoreleasepool(invoking: { look(at: entry, isNeverOffered: isNeverOffered) }) {diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swiftindex f1434f05..3454db4b 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift@@ -118,7 +118,7 @@ public enum HoldBack: String, Sendable, Hashable {case openedFromMail/// A report macOS wrote when the app crashed, which its developer may still ask for.case crashReport- /// It syncs to the cloud, so `RemovalGuard` refuses to move it.+ /// It syncs to the person's other devices (`SyncedFolders`), so `RemovalGuard` refuses to move it.case inTheCloud/// A file a program has open right now, which may still be downloading it.case openInAProgramdiff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swiftindex 8d23653d..342ef3b7 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swift@@ -335,7 +335,7 @@ public struct LeftoverScanner: Sendable {home: String,foldersAbove: FoldersAbove = .itsOwn,measure: Measure = LeftoverScanner.walk,- isInTheCloud: (URL) -> Bool = { $0.isInTheCloud }+ syncsToOtherDevices: (URL) -> Bool = SyncedFolders().syncsToOtherDevices) async -> Leftover {// The walk that measures the folder also reports whether it saw a repository or a wallet, so neither// check costs extra reading. A repository means the folder holds more than the app's state, such as work@@ -355,7 +355,7 @@ public struct LeftoverScanner: Sendable {.holdsALibrary} else if ProtectedData.holdsWorkKeptInACache(url.path(percentEncoded: false)) {.holdsWorkKeptInACache- } else if isInTheCloud(url) {+ } else if syncsToOtherDevices(url) {.inTheCloud} else if let keptOnlyHere = KeptOnlyHere.reason(for: url.path(percentEncoded: false), home: home) {keptOnlyHerediff --git a/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swift b/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swiftindex a542cfe1..80c0eb64 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/RemovalGuard.swift@@ -14,7 +14,8 @@ public enum GuardRefusal: String, Sendable, Hashable, CaseIterable {case protectedLocation/// Something Peel protects is inside, such as a keychain, a wallet's keys, or a browser profile with a wallet.case holdsProtectedData- /// It syncs to the cloud (`isUbiquitousItem`), as Desktop and Documents do in iCloud Drive.+ /// It syncs to the person's other devices, through iCloud or File Provider or in a folder another app keeps in+ /// step (`SyncedFolders`), as Desktop and Documents do in iCloud Drive.case inTheCloud/// A sandboxed app's documents are inside.case holdsDocuments@@ -59,7 +60,7 @@ struct RemovalGuard: Sendable {private let protectedTrees: [[String]]private let protectedObjects: ProtectedObjectsprivate let exclusions: Exclusions- private let isInTheCloud: @Sendable (URL) -> Bool+ private let syncsToOtherDevices: @Sendable (URL) -> Boolvar knowsTheExclusions: Bool { exclusions.isKnown }private let home: String@@ -67,10 +68,10 @@ struct RemovalGuard: Sendable {init(environment: SearchEnvironment,exclusions: Exclusions = .none,- isInTheCloud: @escaping @Sendable (URL) -> Bool = { $0.isInTheCloud }+ syncsToOtherDevices: @escaping @Sendable (URL) -> Bool = SyncedFolders().syncsToOtherDevices) {self.exclusions = exclusions- self.isInTheCloud = isInTheCloud+ self.syncsToOtherDevices = syncsToOtherDeviceslet home = environment.homeDirectoryself.home = home.path(percentEncoded: false)var paths: [String] = [@@ -187,8 +188,8 @@ struct RemovalGuard: Sendable {var info = stat()let protectedFlags = UInt32(SF_RESTRICTED) | UInt32(SF_NOUNLINK)guard lstat(path, &info) != 0 || info.st_flags & protectedFlags == 0 else { return .protectedLocation }- // Not for Put Back, which removes nothing from the cloud.- if item == nil, names.contains(where: { isInTheCloud(URL(filePath: $0)) }) { return .inTheCloud }+ // Not for Put Back, which removes nothing from the other devices.+ if item == nil, names.contains(where: { syncsToOtherDevices(URL(filePath: $0)) }) { return .inTheCloud }// 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 {diff --git a/Packages/PeelCore/Sources/PeelCore/Space/Installers.swift b/Packages/PeelCore/Sources/PeelCore/Space/Installers.swiftindex 317fa5ac..f4d58f62 100644--- a/Packages/PeelCore/Sources/PeelCore/Space/Installers.swift+++ b/Packages/PeelCore/Sources/PeelCore/Space/Installers.swift@@ -118,7 +118,7 @@ public enum Installers {minimumSize: Int64,measure: LeftoverScanner.Measure,canList: (URL) -> AccessState = FullDiskAccess.canList,- isInTheCloud: (URL) -> Bool = { $0.isInTheCloud },+ syncsToOtherDevices: (URL) -> Bool = SyncedFolders().syncsToOtherDevices,openFiles: OpenFiles = OpenFiles()) async -> InstallerScan {var items: [InstallerItem] = []@@ -150,7 +150,9 @@ public enum Installers {else { continue }let (size, seen, newestInside) = await measured(url, by: measure)guard isWorthARow(size, minimumSize) else { continue }- let heldBack = heldBack(url, seen: seen, in: folder, isInTheCloud: isInTheCloud, openFiles: openFiles)+ let heldBack = heldBack(+ url, seen: seen, in: folder, syncsToOtherDevices: syncsToOtherDevices, openFiles: openFiles+ )if isIncomplete {items.append(incompleteDownload(at: url, size: size, heldBack: heldBack, newestInside: newestInside)@@ -176,7 +178,7 @@ public enum Installers {exclusions: exclusions,minimumSize: minimumSize,measure: measure,- isInTheCloud: isInTheCloud,+ syncsToOtherDevices: syncsToOtherDevices,openFiles: openFiles)items += await firmwareFiles(home: home, exclusions: exclusions, minimumSize: minimumSize, measure: measure)@@ -186,7 +188,7 @@ public enum Installers {exclusions: exclusions,minimumSize: minimumSize,measure: measure,- isInTheCloud: isInTheCloud,+ syncsToOtherDevices: syncsToOtherDevices,openFiles: openFiles)items += await packagesKeptByApps(@@ -195,7 +197,7 @@ public enum Installers {exclusions: exclusions,minimumSize: minimumSize,measure: measure,- isInTheCloud: isInTheCloud,+ syncsToOtherDevices: syncsToOtherDevices,openFiles: openFiles)@@ -243,12 +245,12 @@ public enum Installers {}}- /// Why an item is left for the person to choose: it is in iCloud Drive, measuring it saw a reason, a program+ /// Why an item is left for the person to choose: it syncs to other devices, measuring it saw a reason, a program/// has it open, or it belongs to every account on this Mac.private static func heldBack(- _ url: URL, seen: HoldBack?, in folder: Folder, isInTheCloud: (URL) -> Bool, openFiles: OpenFiles+ _ url: URL, seen: HoldBack?, in folder: Folder, syncsToOtherDevices: (URL) -> Bool, openFiles: OpenFiles) -> HoldBack? {- if isInTheCloud(url) { return .inTheCloud }+ if syncsToOtherDevices(url) { return .inTheCloud }if let seen { return seen }if !openFiles.holders(of: url).isEmpty { return .openInAProgram }return folder.isSharedWithEveryone ? .sharedWithEveryone : nil@@ -407,7 +409,7 @@ public enum Installers {exclusions: Exclusions,minimumSize: Int64,measure: LeftoverScanner.Measure,- isInTheCloud: (URL) -> Bool,+ syncsToOtherDevices: (URL) -> Bool,openFiles: OpenFiles) async -> [InstallerItem] {var items: [InstallerItem] = []@@ -431,7 +433,9 @@ public enum Installers {isReadOnly: false,notes: version.map { [.version($0)] } ?? [],requiresPrivileges: FileAccess.requiresPrivilegesToRemove(url),- heldBack: heldBack(url, seen: seen, in: folder, isInTheCloud: isInTheCloud, openFiles: openFiles)+ heldBack: heldBack(+ url, seen: seen, in: folder, syncsToOtherDevices: syncsToOtherDevices, openFiles: openFiles+ )))}}@@ -469,7 +473,7 @@ public enum Installers {exclusions: Exclusions,minimumSize: Int64,measure: LeftoverScanner.Measure,- isInTheCloud: (URL) -> Bool,+ syncsToOtherDevices: (URL) -> Bool,openFiles: OpenFiles) async -> [InstallerItem] {let caches = home.appending(path: "Library/Caches", directoryHint: .isDirectory)@@ -529,7 +533,9 @@ public enum Installers {isReadOnly: false,notes: [],requiresPrivileges: FileAccess.requiresPrivilegesToRemove(url),- heldBack: heldBack(url, seen: seen, in: place, isInTheCloud: isInTheCloud, openFiles: openFiles)+ heldBack: heldBack(+ url, seen: seen, in: place, syncsToOtherDevices: syncsToOtherDevices, openFiles: openFiles+ )?? (isRunning ? .appIsRunning : nil)))}@@ -544,7 +550,7 @@ public enum Installers {exclusions: Exclusions,minimumSize: Int64,measure: LeftoverScanner.Measure,- isInTheCloud: (URL) -> Bool,+ syncsToOtherDevices: (URL) -> Bool,openFiles: OpenFiles) async -> [InstallerItem] {let support = home.appending(path: "Library/Application Support", directoryHint: .isDirectory)@@ -565,7 +571,9 @@ public enum Installers {let (size, seen, _) = await measured(url, by: measure)guard isWorthARow(size, minimumSize) else { continue }let place = Folder(url: folder, isSharedWithEveryone: false)- let heldBack = heldBack(url, seen: seen, in: place, isInTheCloud: isInTheCloud, openFiles: openFiles)+ let heldBack = heldBack(+ url, seen: seen, in: place, syncsToOtherDevices: syncsToOtherDevices, openFiles: openFiles+ )let named = installedApp(for: url, in: installedApps) == nil ? owner : nilitems.append(appInstaller(at: url, size: size, heldBack: heldBack ?? .keptByAnApp, installedApps: installedApps, named: nameddiff --git a/Packages/PeelCore/Sources/PeelCore/Support/SyncedFolders.swift b/Packages/PeelCore/Sources/PeelCore/Support/SyncedFolders.swiftnew file mode 100644index 00000000..71d23b33--- /dev/null+++ b/Packages/PeelCore/Sources/PeelCore/Support/SyncedFolders.swift@@ -0,0 +1,50 @@+import Darwin+import Foundation+internal import PeelPrivileged+import Synchronization++/// What syncs to the person's other devices, where moving it to the Trash would remove it there too: what iCloud and+/// File Provider keep (`isUbiquitousItem`), and what sits in a folder another app keeps in step, known by the entry+/// the app writes at that folder's root. Each folder is asked once for the life of an instance.+final class SyncedFolders: Sendable {+ /// The entry each app keeps at the root of a folder it syncs: Syncthing's folder marker (`.stfolder`, its default+ /// `markerName`), the share's identifier in Resilio Sync's `.sync` folder, Synology Drive Client's working folder,+ /// and the ignore file MEGA writes in every new sync (`src/sync.cpp` in meganz/sdk).+ static let markers = [".stfolder", ".sync/ID", ".SynologyWorkingDirectory", ".megaignore"]++ private let answers = Mutex<[String: Bool]>([:])++ func syncsToOtherDevices(_ url: URL) -> Bool {+ url.isInTheCloud || isKeptInStep(url)+ }++ /// Whether `url`, when it is a folder, or a folder it sits in holds one of the markers.+ func isKeptInStep(_ url: URL) -> Bool {+ let names = PathComponents.of(url.path(percentEncoded: false))+ return isKeptInStep(folder: FileAccess.isARealFolder(url) ? names[...] : names.dropLast())+ }++ /// Whether the folder whose entries are `entries` holds one of the markers, read from a listing already made.+ static func marksAFolder(_ entries: [URL]) -> Bool {+ entries.contains { entry in+ markers.contains { marker in+ let parts = marker.split(separator: "/", maxSplits: 1).map(String.init)+ guard entry.lastPathComponent == parts[0] else { return false }+ var info = stat()+ return parts.count == 1 || lstat(entry.path(percentEncoded: false) + "/" + parts[1], &info) == 0+ }+ }+ }++ /// The answer for the folder named by `names`, kept with what the folders above it answered.+ private func isKeptInStep(folder names: ArraySlice<String>) -> Bool {+ guard !names.isEmpty else { return false }+ let folder = "/" + names.joined(separator: "/")+ if let known = answers.withLock({ $0[folder] }) { return known }+ var info = stat()+ let kept = Self.markers.contains { lstat(folder + "/" + $0, &info) == 0 }+ || isKeptInStep(folder: names.dropLast())+ answers.withLock { $0[folder] = kept }+ return kept+ }+}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swiftindex 4c025005..594e6a13 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swift@@ -616,7 +616,7 @@ struct AttackRemovalGuardTests {let synced: Set = ["Report.pdf", "Trip", "Notes.txt"]let guardian = RemovalGuard(environment: SearchEnvironment(homeDirectory: home, rootDirectory: directory.url.appending(path: "root")),- isInTheCloud: { synced.contains($0.lastPathComponent) }+ syncsToOtherDevices: { synced.contains($0.lastPathComponent) })let (device, number) = try #require(inode(file.path(percentEncoded: false)))@@ -627,6 +627,25 @@ struct AttackRemovalGuardTests {#expect(guardian.allowsPuttingBack(trashed, at: home.appending(path: "Desktop/Notes.txt")))}++ @Test func whatAFolderASyncAppKeepsInStepHoldsStaysToo() throws {+ let directory = try TemporaryDirectory()+ let home = directory.url.appending(path: "home", directoryHint: .isDirectory)+ try directory.directory("home/Sync/.stfolder")+ let file = try directory.file("home/Sync/Photos/Beach.jpg")+ let twin = try directory.file("home/Local/Photos/Beach.jpg")+ let trashed = try directory.file("home/.Trash/Shells.jpg")+ let guardian = RemovalGuard(+ environment: SearchEnvironment(homeDirectory: home, rootDirectory: directory.url.appending(path: "root"))+ )++ #expect(guardian.refusal(of: file) == .inTheCloud)+ #expect(guardian.refusal(of: file.deletingLastPathComponent()) == .inTheCloud)+ #expect(guardian.refusal(of: home.appending(path: "Sync", directoryHint: .isDirectory)) == .inTheCloud)+ #expect(guardian.refusal(of: twin) == nil)+ #expect(guardian.allowsPuttingBack(trashed, at: file.deletingLastPathComponent().appending(path: "Shells.jpg")))+ }+/// The guard refuses what is inside a container's `Data/Documents`, where a sandboxed app keeps what its/// user made. An uninstall lists the container around it, so the container is refused too while that folder/// holds anything or cannot be read.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swiftindex 5f22c3b2..1592f066 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swift@@ -460,6 +460,20 @@ struct DuplicateFinderTests {#expect(!finder.canScan(URL(filePath: "/Volumes/")))}++ @Test func refusesAFolderASyncAppKeepsInStep() throws {+ let directory = try TemporaryDirectory()+ let home = try directory.directory("home")+ try directory.directory("home/Sync/.stfolder")+ try directory.directory("home/Sync/Photos")+ try directory.directory("home/Documents")+ let finder = DuplicateFinder(homeDirectory: home)++ #expect(!finder.canScan(home.appending(path: "Sync", directoryHint: .isDirectory)))+ #expect(!finder.canScan(home.appending(path: "Sync/Photos", directoryHint: .isDirectory)))+ #expect(finder.canScan(home.appending(path: "Documents", directoryHint: .isDirectory)))+ }+@Test func aFolderSpelledInAnotherCaseIsJudgedAsTheDiskSpellsIt() throws {let directory = try TemporaryDirectory()let home = try directory.directory("home")diff --git a/Packages/PeelCore/Tests/PeelCoreTests/FileSearchTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/FileSearchTests.swiftindex d9ac5506..1f5c5e1d 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/FileSearchTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/FileSearchTests.swift@@ -129,7 +129,7 @@ struct FileSearchTests {let synced = try directory.file("home/Documents/Report.pdf", bytes: 9_000)let local = try directory.file("home/Downloads/Setup.dmg", bytes: 1_000)let environment = SearchEnvironment(homeDirectory: home, rootDirectory: directory.url)- let guardian = RemovalGuard(environment: environment, isInTheCloud: { $0.lastPathComponent == "Report.pdf" })+ let guardian = RemovalGuard(environment: environment, syncsToOtherDevices: { $0.lastPathComponent == "Report.pdf" })let results = FileSearch.results(from: [synced, local].map { $0.path(percentEncoded: false) },diff --git a/Packages/PeelCore/Tests/PeelCoreTests/FolderDuplicateTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/FolderDuplicateTests.swiftindex 31ddca1a..9393f6e9 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/FolderDuplicateTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/FolderDuplicateTests.swift@@ -106,6 +106,18 @@ struct FolderDuplicateTests {#expect(result.suggestedFolderSelection.map(\.lastPathComponent) == ["Trip"])}++ @Test func offersNoFolderASyncAppKeepsInStep() async throws {+ let directory = try TemporaryDirectory()+ try trip(in: directory)+ try directory.file("home/Pictures/.megaignore")++ let result = try await scan(directory)++ #expect(names(result).isEmpty)+ #expect(!result.groups.flatMap(\.files).contains { $0.url.path(percentEncoded: false).contains("/Pictures/") })+ }+/// A folder kept only in the cloud, which no test can make, is named to the scan.@Test func aFolderThatLivesOnlyInTheCloudIsNeverLookedInto() async throws {let directory = try TemporaryDirectory()diff --git a/Packages/PeelCore/Tests/PeelCoreTests/InstallersTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/InstallersTests.swiftindex 1faa30e1..1fd25c47 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/InstallersTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/InstallersTests.swift@@ -296,7 +296,7 @@ struct InstallersTests {let scan = await Installers.scan(installedApps: [], home: directory.url, root: directory.url, exclusions: .none, minimumSize: 100_000,measure: LeftoverScanner.walk,- isInTheCloud: { PathPattern.comparablePath(of: $0.deletingLastPathComponent()) == documents }+ syncsToOtherDevices: { PathPattern.comparablePath(of: $0.deletingLastPathComponent()) == documents })let heldBack = Dictionary(uniqueKeysWithValues: scan.items.map { ($0.name, $0.heldBack) })@@ -307,6 +307,23 @@ struct InstallersTests {#expect(Set(scan.items.filter { selectable.contains($0.url) }.map(\.name)) == ["Other-3.dmg"])}++ @Test func anInstallerInAFolderASyncAppKeepsInStepCannotBeSelected() async throws {+ let directory = try TemporaryDirectory()+ try directory.directory("Documents/.stfolder")+ try directory.file("Documents/Tool-2.dmg", bytes: 400_000)+ try directory.file("Downloads/Other-3.dmg", bytes: 400_000)++ let scan = await Installers.scan(+ installedApps: [], home: directory.url, root: directory.url, exclusions: .none, minimumSize: 100_000,+ measure: LeftoverScanner.walk+ )++ let heldBack = Dictionary(uniqueKeysWithValues: scan.items.map { ($0.name, $0.heldBack) })+ #expect(heldBack["Tool-2.dmg"] == .inTheCloud)+ #expect(heldBack["Other-3.dmg"] == .some(nil))+ }+/// An item only an administrator can move goes through the helper, which takes a macOS installer from/// Applications and anything in the home's Library, and nothing else in the home folder. One it would refuse/// cannot be selected at all.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swiftindex 2d39da2b..c7856e3e 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift@@ -1148,7 +1148,7 @@ struct LeftoverScannerTests {match: LeftoverMatch(reason: .bundleIdentifier, confidence: .certain, sharedWith: []),parent: ParentAccess(url.deletingLastPathComponent()),home: directory.url.appending(path: "home").path(percentEncoded: false),- isInTheCloud: { $0.lastPathComponent == "Example" }+ syncsToOtherDevices: { $0.lastPathComponent == "Example" })}@@ -1157,6 +1157,26 @@ struct LeftoverScannerTests {#expect(await leftover(local).match.heldBack == nil)}++ @Test func aLeftoverInAFolderASyncAppKeepsInStepCannotBeSelected() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("home/Projects/.megaignore")+ let synced = try directory.directory("home/Projects/Example")+ let local = try directory.directory("home/Other/Example")+ func leftover(_ url: URL) async -> Leftover {+ await LeftoverScanner.leftover(+ at: url,+ kind: .elsewhere,+ match: LeftoverMatch(reason: .bundleIdentifier, confidence: .certain, sharedWith: []),+ parent: ParentAccess(url.deletingLastPathComponent()),+ home: directory.url.appending(path: "home").path(percentEncoded: false)+ )+ }++ #expect(await leftover(synced).match.heldBack == .inTheCloud)+ #expect(await leftover(local).match.heldBack == nil)+ }+/// A browser's folder that holds a profile with a wallet extension cannot be selected either.@Test func aBrowsersFolderHoldingAWalletCannotBeSelected() async throws {let directory = try TemporaryDirectory()diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swiftindex e66c4585..b79a863a 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift@@ -1177,6 +1177,24 @@ struct ProjectArtifactsTests {#expect(ProjectArtifacts.refusal(for: URL(filePath: "/Users/x/does-not-exist")) == .notAFolder)}++ @Test func leavesWhatASyncAppKeepsInStep() async throws {+ let directory = try TemporaryDirectory()+ for project in ["Code/kept", "Code/synced", "Shared/app"] {+ try directory.file("\(project)/package.json")+ try directory.file("\(project)/node_modules/left/index.js")+ }+ try directory.directory("Code/synced/.stfolder")+ try directory.file("Shared/.megaignore")+ let code = directory.url.appending(path: "Code", directoryHint: .isDirectory)+ let shared = directory.url.appending(path: "Shared/app", directoryHint: .isDirectory)++ let scan = await ProjectArtifacts.scan(roots: [code, shared])++ #expect(scan.artifacts.map(\.project.lastPathComponent) == ["kept"])+ #expect(scan.refusedRoots.map { $0.reason } == [.inTheCloud])+ }+@Test func findsEveryKindItKnowsInAProjectOfItsOwn() async throws {let directory = try TemporaryDirectory()var expected: [String: String] = [:]diff --git a/Packages/PeelCore/Tests/PeelCoreTests/SyncedFoldersTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/SyncedFoldersTests.swiftnew file mode 100644index 00000000..da820992--- /dev/null+++ b/Packages/PeelCore/Tests/PeelCoreTests/SyncedFoldersTests.swift@@ -0,0 +1,52 @@+import Foundation+@testable import PeelCore+import Testing++struct SyncedFoldersTests {+ @Test func knowsWhatEachSyncAppKeepsInStep() throws {+ let directory = try TemporaryDirectory()+ let roots = ["Syncthing": ".stfolder/", "Resilio": ".sync/ID", "Synology": ".SynologyWorkingDirectory/", "MEGA": ".megaignore"]+ for (root, marker) in roots {+ if marker.hasSuffix("/") {+ try directory.directory("home/\(root)/\(marker)")+ } else {+ try directory.file("home/\(root)/\(marker)")+ }+ try directory.file("home/\(root)/Projects/notes.txt")+ }+ try directory.file("home/Plain/Projects/notes.txt")+ let synced = SyncedFolders()++ for root in roots.keys {+ let folder = directory.url.appending(path: "home/\(root)", directoryHint: .isDirectory)+ #expect(synced.syncsToOtherDevices(folder), "\(root)")+ #expect(synced.syncsToOtherDevices(folder.appending(path: "Projects", directoryHint: .isDirectory)), "\(root)")+ #expect(synced.syncsToOtherDevices(folder.appending(path: "Projects/notes.txt")), "\(root)")+ }+ #expect(!synced.syncsToOtherDevices(directory.url.appending(path: "home/Plain/Projects/notes.txt")))+ }++ @Test func aSyncFolderWithoutResiliosIdentifierMarksNothing() throws {+ let directory = try TemporaryDirectory()+ try directory.file("Tool/.sync/settings.json")+ let notes = try directory.file("Tool/notes.txt")++ #expect(!SyncedFolders().syncsToOtherDevices(notes))+ }++ @Test func readsAFolderAsSyncedFromItsListingAlone() throws {+ let directory = try TemporaryDirectory()+ try directory.file("Resilio/.sync/ID")+ try directory.file("Tool/.sync/settings.json")+ func listing(_ folder: String) throws -> [URL] {+ try FileManager.default.contentsOfDirectory(+ at: directory.url.appending(path: folder, directoryHint: .isDirectory), includingPropertiesForKeys: nil+ )+ }++ #expect(SyncedFolders.marksAFolder(try listing("Resilio")))+ #expect(!SyncedFolders.marksAFolder(try listing("Tool")))+ #expect(SyncedFolders.marksAFolder([URL(filePath: "/Sync/.stfolder"), URL(filePath: "/Sync/notes.txt")]))+ #expect(!SyncedFolders.marksAFolder([URL(filePath: "/Sync/notes.txt")]))+ }+}diff --git a/Peel/Views/Duplicates/DuplicateScanForm.swift b/Peel/Views/Duplicates/DuplicateScanForm.swiftindex dde7f21f..5b0db176 100644--- a/Peel/Views/Duplicates/DuplicateScanForm.swift+++ b/Peel/Views/Duplicates/DuplicateScanForm.swift@@ -80,7 +80,7 @@ struct DuplicateScanForm: View {Button("OK", role: .cancel) {}} message: {let paths = rejectedFolders.map(\.abbreviatedPath).joined(separator: "\n")- Text("Choose a folder in your home folder, /Users/Shared, or a disk Peel can write to. iCloud Drive, app data, the Music and TV apps’ media folders, and system folders aren’t scanned.\n\n\(paths)")+ Text("Choose a folder in your home folder, /Users/Shared, or a disk Peel can write to. iCloud Drive and other folders that sync to your other devices, app data, the Music and TV apps’ media folders, and system folders aren’t scanned.\n\n\(paths)")}}diff --git a/Peel/Views/Presentation.swift b/Peel/Views/Presentation.swiftindex 73c51fef..ef65fa80 100644--- a/Peel/Views/Presentation.swift+++ b/Peel/Views/Presentation.swift@@ -150,7 +150,7 @@ extension GuardRefusal {case .staysItself: "Peel won’t move this folder itself, since macOS expects to find it. What is inside it can go."case .protectedLocation: "Peel won’t move this: it is part of macOS, or inside something Peel protects."case .holdsProtectedData: "Peel won’t move this: something Peel protects is inside, such as a keychain or a wallet."- case .inTheCloud: "Peel won’t move this: it syncs with iCloud or another cloud service, and moving it to the Trash would also remove it from the cloud and from your other devices."+ case .inTheCloud: "Peel won’t move this: it syncs to your other devices through iCloud or another app, and moving it to the Trash would also remove it from them."case .holdsDocuments: "Peel won’t move this: an app’s documents are inside."case .holdsALibrary: "Peel won’t move this: a photo, music, or video library is inside."case .holdsWorkKeptInACache: "Peel won’t move this: an app keeps work inside that exists nowhere else, such as an editor’s local history."@@ -208,7 +208,7 @@ extension ProjectArtifacts.Refusal {var explanation: String {switch self {case .tooBroad: String(localized: "A whole home folder or disk is too much to search. Choose the folder your projects are in.")- case .inTheCloud: String(localized: "It is in iCloud Drive or another cloud folder, which Peel leaves to the app that syncs it.")+ case .inTheCloud: String(localized: "It is in a folder that syncs to your other devices through iCloud or another app, which Peel leaves to that app.")case .notAFolder: String(localized: "It isn’t a folder Peel can reach. A disk that isn’t connected looks like this too.")case .inAPackage: String(localized: "It is an app or another package, or inside one, and what is inside belongs to it.")case .neverSearched: String(localized: "It is a hidden folder, a Library, or a folder a tool fills, such as node_modules, or it sits inside one. Apps and tools keep what they install there, so Peel doesn’t look for projects in it.")@@ -324,7 +324,7 @@ extension HoldBack {case .crashReport:"Not selected: a report macOS wrote when the app crashed, which its developer may still ask you for."case .inTheCloud:- "Left alone: this syncs with iCloud or another cloud service, and moving it to the Trash would also remove it from the cloud and from your other devices."+ "Left alone: this syncs to your other devices through iCloud or another app, and moving it to the Trash would also remove it from them."case .openInAProgram:"Not selected: a program has this open right now, and may still be downloading it."case .changedRecently:diff --git a/SAFETY.md b/SAFETY.mdindex 806e9e44..8c4b4bfa 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -75,9 +75,11 @@ library along, and the row says so instead of failing when you press the button.wallet in it stays the same way, and so does a folder that holds one a level or two down: see[Crypto wallets](#crypto-wallets).-Anything that syncs to iCloud or another cloud service stays too, wherever it is, such as what is on your Desktop and-in Documents when they are in iCloud Drive: the Trash would take it from the cloud and from your other devices. Its-row says so, and File Search doesn't list it.+Anything that syncs to your other devices stays too, wherever it is: what iCloud or another cloud service keeps, such+as what is on your Desktop and in Documents when they are in iCloud Drive, and what is in a folder Syncthing, Resilio+Sync, Synology Drive Client, or MEGA keeps in step, known by the entry each writes at that folder's root (`.stfolder`,+`.sync/ID`, `.SynologyWorkingDirectory`, `.megaignore`). The Trash would take it from your other devices too. Its row+says so, and File Search doesn't list it.Also refused: work that an app keeps inside a *cache* folder and nowhere else. A JetBrains IDE and AndroidStudio record your unsaved edits in `LocalHistory`, beside their caches, and Deno keeps `localStorage` and its