()
| 790 | } |
| 791 | |
| 792 | export function resetFolderTreeCaches() { |
| 793 | _folderCountCache.clear(); |
| 794 | _inflightCounts.clear(); |
| 795 | _nonEmptyCache.clear(); |
| 796 | _childCache.clear(); |
| 797 | _capViewCache.clear(); |
| 798 | _capsCache.clear(); |
| 799 | _capsInflight.clear(); |
| 800 | try { clearPeekCache(); } catch (e) { /* ignore */ } |
| 801 | try { if (window._frPeekCache?.clear) window._frPeekCache.clear(); } catch (e) { /* ignore */ } |
| 802 | try { window.folderColorMap = {}; } catch (e) { /* ignore */ } |
| 803 | try { window.__FR_COLORS_PROMISE = null; } catch (e) { /* ignore */ } |
| 804 | } |
| 805 | |
| 806 | // Returns true if `folder` has any *unlocked* descendant within maxDepth. |
| 807 | // Uses listChildren’s locked flag; depth defaults to 2 (fast). |
no test coverage detected