lostpaul_obsidian-folder-notes/src/ExcludeFolders/WhitelistFolder.ts
2025-07-27 11:33:21 +02:00

24 lines
686 B
TypeScript

import type FolderNotesPlugin from '../main';
export class WhitelistedFolder {
type: string;
id: string;
path: string;
string: string;
subFolders: boolean;
enableSync: boolean;
enableAutoCreate: boolean;
enableFolderNote: boolean;
disableCollapsing: boolean;
showInFolderOverview: boolean;
hideInFileExplorer: boolean;
position: number;
hideInSettings: boolean;
constructor(path: string, position: number, id: string | undefined, plugin: FolderNotesPlugin) {
this.type = 'folder';
this.id = id || crypto.randomUUID();
this.path = path;
this.subFolders = plugin.settings.excludeFolderDefaultSettings.subFolders;
this.position = position;
this.string = '';
}
}