mirror of
https://github.com/shanshuimei/obsidian-generate-timeline.git
synced 2026-07-22 05:37:40 +00:00
删了点无用的函数
This commit is contained in:
parent
6ab23b5477
commit
cc9a6e7ca6
1 changed files with 0 additions and 13 deletions
|
|
@ -107,19 +107,6 @@ export class TimelineView extends ItemView {
|
|||
});
|
||||
}
|
||||
|
||||
private async ensureTimelineFolder(): Promise<TFolder> {
|
||||
const timelineFolderPath = 'timelines';
|
||||
const existingFolder = this.app.vault.getAbstractFileByPath(timelineFolderPath);
|
||||
|
||||
if (existingFolder instanceof TFolder) {
|
||||
return existingFolder;
|
||||
}
|
||||
|
||||
// 如果文件夹不存在,创建它
|
||||
await this.app.vault.createFolder(timelineFolderPath);
|
||||
return this.app.vault.getAbstractFileByPath(timelineFolderPath) as TFolder;
|
||||
}
|
||||
|
||||
async updateFromFolder(folderPath: string) {
|
||||
const folder = this.app.vault.getAbstractFileByPath(folderPath) as TFolder;
|
||||
if (folder) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue