MCPcopy Create free account
hub / github.com/error311/FileRise / isEncryptedForFolderIcon

Function isEncryptedForFolderIcon

public/js/fileListView.js:157–168  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

155}
156
157function isEncryptedForFolderIcon(folder) {
158 try {
159 const enc = window.currentFolderCaps?.encryption || null;
160 if (enc && enc.encrypted) return true;
161 } catch (e) { /* ignore */ }
162 try {
163 const el = document.querySelector(`.folder-option[data-folder="${CSS.escape(folder)}"]`);
164 return !!(el && el.classList.contains('encrypted'));
165 } catch (e) {
166 return false;
167 }
168}
169
170function refreshEncryptedFolderIconsInList() {
171 // Folder strip icons

Callers 4

repaintStripIconFunction · 0.85
attachStripIconAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected