🐛 create sessions.json
This commit is contained in:
parent
2b602635ec
commit
0232de4ae5
1 changed files with 5 additions and 1 deletions
|
|
@ -27,7 +27,11 @@ export function getSessionFilePath(sessionId: string): string {
|
|||
}
|
||||
|
||||
export function getSessionsListPath(): string {
|
||||
return path.join(getSessionsFolderPath(), "sessions.json");
|
||||
const filepath = path.join(getSessionsFolderPath(), "sessions.json");
|
||||
if (!fs.existsSync(filepath)) {
|
||||
fs.writeFileSync(filepath, JSON.stringify([]));
|
||||
}
|
||||
return filepath;
|
||||
}
|
||||
|
||||
export function getConfigJsonPath(): string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue