MCPcopy
hub / github.com/kimlimjustin/xplorer / OpenLog

Function OpenLog

src/Components/Functions/log.ts:63–68  ·  view source on GitHub ↗
(path: String)

Source from the content-addressed store, hash-verified

61 * @returns {Promise<void>}
62 */
63const OpenLog = async (path: String): Promise<void> => {
64 const log = await Storage.get('log');
65 let openLog = log?.opens ?? [];
66 log.opens = [...openLog, { path, timestamp: new Date() }];
67 Storage.set('log', log);
68};
69
70export { ErrorLog, InfoLog, OperationLog, OpenLog, OpenLogType };

Callers 3

OpenDirFunction · 0.90
OpenHandlerFunction · 0.90
processSearchFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected