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

Function getLastOpenedFolder

public/js/folderManager.js:179–186  ·  view source on GitHub ↗
(sourceId = '')

Source from the content-addressed store, hash-verified

177}
178
179function getLastOpenedFolder(sourceId = '') {
180 const key = getLastOpenedFolderKey(sourceId);
181 try {
182 const val = localStorage.getItem(key);
183 if (val) return val;
184 } catch (e) { /* ignore */ }
185 return '';
186}
187
188function setLastOpenedFolder(folder, sourceId = '') {
189 const f = String(folder || '').trim();

Callers 2

chooseInitialFolderFunction · 0.70
loadFolderTreeFunction · 0.70

Calls 1

getLastOpenedFolderKeyFunction · 0.70

Tested by

no test coverage detected