| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
These paths are not automatically put into a keep list (a.k.a. whitelist). |
| 4 |
Instead, if user adds any of these to the delete list, the application |
| 5 |
shows a warning. |
| 6 |
|
| 7 |
Windows and macOS are case-insensitive. |
| 8 |
Linux is case-sensitive except where `case="insensitive"`. |
| 9 |
Omit trailing slashes. |
| 10 |
|
| 11 |
Paths with data that can be safely deleted or regenerated does _not_ belong |
| 12 |
here. Examples: |
| 13 |
~/.cache |
| 14 |
%tmp% |
| 15 |
%temp% |
| 16 |
.cargo |
| 17 |
.npm |
| 18 |
.venv |
| 19 |
--> |
| 20 |
<protected_paths> |
| 21 |
<paths os="unix" depth="0"> |
| 22 |
<path>/</path> |
| 23 |
<path>/media</path> |
| 24 |
<path>/mnt</path> |
| 25 |
<!-- user may want to delete /root/.cache --> |
| 26 |
<path>/root</path> |
| 27 |
<path>$XDG_DATA_HOME</path> |
| 28 |
<!-- ~/.local/share/recently-used.xbel --> |
| 29 |
<path>~/.local/share</path> |
| 30 |
</paths> |
| 31 |
<paths os="unix" depth="1"> |
| 32 |
<path>/home</path> |
| 33 |
<path>$XDG_CONFIG_HOME</path> |
| 34 |
<path>~/.config</path> |
| 35 |
<path>~/.mozilla</path> |
| 36 |
<path>~/.thunderbird</path> |
| 37 |
<path>~/.wine</path> |
| 38 |
<path>$XDG_DATA_DIRS</path> |
| 39 |
<path>/usr/local/share</path> |
| 40 |
<!-- common to delete file like /var/log/foo.log --> |
| 41 |
<path>/var</path> |
| 42 |
</paths> |
| 43 |
<paths os="unix" depth="2"> |
| 44 |
<path>/usr</path> |
| 45 |
</paths> |
| 46 |
<paths os="unix" depth="any"> |
| 47 |
<path>/bin</path> |
| 48 |
<path>/boot</path> |
| 49 |
<path>/dev</path> |
| 50 |
<path>/etc</path> |
| 51 |
<path>/lib</path> |
| 52 |
<path>/opt</path> |
| 53 |
<path>/proc</path> |
| 54 |
<path>/run</path> |
| 55 |
<path>/sbin</path> |
| 56 |
<path>/snap</path> |
| 57 |
<path>/srv</path> |
| 58 |
<path>/sys</path> |
| 59 |
<path>~/.android</path> |
| 60 |
<path>~/.docker</path> |
| 61 |
<path>~/.nvm</path> |
| 62 |
<path>~/.password-store</path> |
| 63 |
<path>~/.vscode</path> |
| 64 |
</paths> |
| 65 |
<paths os="windows" depth="0"> |
| 66 |
<path>%systemdrive%</path> |
| 67 |
<path>%homedrive%</path> |
| 68 |
<path>c:\</path> |
| 69 |
<path>c:\pagefile.sys</path> |
| 70 |
<path>c:\hiberfil.sys</path> |
| 71 |
<!-- user may want to delete %windir%\WindowsUpdate.log --> |
| 72 |
<path>%windir%</path> |
| 73 |
<!-- systemroot often expands to c:\windows--> |
| 74 |
<path>%systemroot%</path> |
| 75 |
<path>c:\windows</path> |
| 76 |
<path>%userprofile%</path> |
| 77 |
<path>c:\users\%username%</path> |
| 78 |
<!-- winapp2.ini cleans %userprofile%\IconCache.db --> |
| 79 |
<path>%localappdata%</path> |
| 80 |
<!-- winapp2.ini cleans %userprofile%\Searches\Everywhere.search-ms --> |
| 81 |
<path>%userprofile%\Searches</path> |
| 82 |
</paths> |
| 83 |
<paths os="windows" depth="1"> |
| 84 |
<path>%appdata%</path> |
| 85 |
<path>%commonappdata%</path> |
| 86 |
<path>%localappdatalow%</path> |
| 87 |
<path>%programdata%</path> |
| 88 |
<path>%programfiles%</path> |
| 89 |
<path>%public%</path> |
| 90 |
<!-- user may want to delete recordings under %Documents%\Zoom\--> |
| 91 |
<path>%documents%</path> |
| 92 |
<path>c:\users</path> |
| 93 |
<path>c:\boot</path> |
| 94 |
<path>c:\recovery</path> |
| 95 |
<path>c:\windows\system32</path> |
| 96 |
<path>c:\program files</path> |
| 97 |
<path>c:\program files (x86)</path> |
| 98 |
<path>c:\programdata</path> |
| 99 |
</paths> |
| 100 |
<paths os="windows" depth="any"> |
| 101 |
<path>%music%</path> |
| 102 |
<path>%pictures%</path> |
| 103 |
<path>%video%</path> |
| 104 |
<path>%userprofile%\Box</path> |
| 105 |
<path>%userprofile%\Creative Cloud Files</path> |
| 106 |
<path>%userprofile%\Dropbox</path> |
| 107 |
<path>%userprofile%\Favorites</path> |
| 108 |
<path>%userprofile%\Google Drive</path> |
| 109 |
<path>%userprofile%\Links</path> |
| 110 |
<path>%userprofile%\My Virtual Machines</path> |
| 111 |
<path>%userprofile%\OneDrive</path> |
| 112 |
<path>%userprofile%\Saved games</path> |
| 113 |
</paths> |
| 114 |
<!-- |
| 115 |
cross platform |
| 116 |
case follows platform default (case-sensitive on Linux, |
| 117 |
case-insensitive on Windows and macOS) |
| 118 |
do not match child objects |
| 119 |
--> |
| 120 |
<paths depth="0"> |
| 121 |
<path>~</path> |
| 122 |
</paths> |
| 123 |
<paths depth="1" case="insensitive"> |
| 124 |
<path>~/Documents</path> |
| 125 |
</paths> |
| 126 |
<!-- |
| 127 |
cross platform |
| 128 |
case follows platform default (case-sensitive on Linux, |
| 129 |
case-insensitive on Windows and macOS) |
| 130 |
also matches any child objects |
| 131 |
--> |
| 132 |
<paths depth="any"> |
| 133 |
<path>~/.ansible</path> |
| 134 |
<path>~/.aws</path> |
| 135 |
<path>~/.azure</path> |
| 136 |
<path>~/.env</path> |
| 137 |
<path>~/.gcloud</path> |
| 138 |
<path>~/.git-credentials</path> |
| 139 |
<path>~/.gnupg</path> |
| 140 |
<path>~/.idea</path> |
| 141 |
<path>~/.kube</path> |
| 142 |
<path>~/.netrc</path> |
| 143 |
<path>~/.ssh</path> |
| 144 |
</paths> |
| 145 |
<!-- |
| 146 |
cross platform |
| 147 |
case insensitive |
| 148 |
also matches any child objects |
| 149 |
--> |
| 150 |
<paths depth="any" case="insensitive"> |
| 151 |
<path>~/backup</path> |
| 152 |
<path>~/backups</path> |
| 153 |
<path>~/dev</path> |
| 154 |
<path>~/code</path> |
| 155 |
<path>~/Desktop</path> |
| 156 |
<path>~/Music</path> |
| 157 |
<path>~/Nextcloud</path> |
| 158 |
<path>~/owncloud</path> |
| 159 |
<path>~/Pictures</path> |
| 160 |
<path>~/projects</path> |
| 161 |
<path>~/sync</path> |
| 162 |
<path>~/Videos</path> |
| 163 |
<path>~/Virtualbox VMs</path> |
| 164 |
<path>~/VMs</path> |
| 165 |
</paths> |
| 166 |
<!-- |
| 167 |
Without an absolute path, warn if adding a certain path under any directory. |
| 168 |
--> |
| 169 |
<paths depth="any"> |
| 170 |
<path>.bzr</path> |
| 171 |
<path>.git</path> |
| 172 |
<path>.hg</path> |
| 173 |
<path>.svn</path> |
| 174 |
</paths> |
| 175 |
</protected_paths> |