mirror of
https://github.com/band/obsidian-folder-filelist.git
synced 2026-07-22 12:50:27 +00:00
all indices in one folder
This commit is contained in:
parent
84cd37af0d
commit
cebf04f9fd
1 changed files with 4 additions and 2 deletions
6
main.ts
6
main.ts
|
|
@ -366,11 +366,13 @@ export default class FolderListfilePlugin extends Plugin {
|
|||
} and was last updated on ${new Date().toLocaleString()}*`;
|
||||
|
||||
// Create or update the listfile
|
||||
this.log(`Updating listfile at: ${folderPath}`);
|
||||
this.log(`Updating listfile for: ${folderPath}`);
|
||||
const listFilePath = `_ndxfiles/${listFileName}`;
|
||||
/*
|
||||
const listFilePath = folderPath
|
||||
? `${folderPath}/${listFileName}`
|
||||
: listFileName;
|
||||
|
||||
*/
|
||||
if (await this.app.vault.adapter.exists(listFilePath)) {
|
||||
await this.app.vault.adapter.write(listFilePath, content);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue