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

Function getLastOpenedFolder

public/js/fileListView.js:1686–1694  ·  view source on GitHub ↗
(sourceId = '')

Source from the content-addressed store, hash-verified

1684}
1685
1686function getLastOpenedFolder(sourceId = '') {
1687 const key = getLastOpenedFolderKey(sourceId);
1688 try {
1689 const val = String(localStorage.getItem(key) || '').trim();
1690 return val;
1691 } catch (e) {
1692 return '';
1693 }
1694}
1695
1696function setLastOpenedFolder(folder, sourceId = '') {
1697 if (!folder) return;

Callers 5

ensurePaneStateFunction · 0.70
setActivePaneFunction · 0.70
fileListView.jsFile · 0.70
loadFileListFunction · 0.70

Calls 1

getLastOpenedFolderKeyFunction · 0.70

Tested by

no test coverage detected