mirror of
https://github.com/Steffo99/obsidian-file-index.git
synced 2024-11-21 12:44:18 +00:00
Warn if multiple files have the same basename
This commit is contained in:
parent
b91d190094
commit
57af065888
1 changed files with 3 additions and 0 deletions
3
main.ts
3
main.ts
|
@ -63,6 +63,9 @@ export default class SteffoFileIndexPlugin extends Plugin {
|
|||
paths.push(file.path)
|
||||
|
||||
const basename = file.basename.toLocaleLowerCase()
|
||||
if(basenames.hasOwnProperty(basename)) {
|
||||
console.warn("[SteffoFileIndexPlugin] Multiple files with the same basename detected:", basenames[basename], file.path)
|
||||
}
|
||||
basenames[basename] = file.path
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue