diff --git a/docs/RELEASE_NOTES.TXT b/docs/RELEASE_NOTES.TXT index 7259f8b..53169e2 100644 --- a/docs/RELEASE_NOTES.TXT +++ b/docs/RELEASE_NOTES.TXT @@ -1,3 +1,5 @@ +0.16.3 +Fix: The plugin can delete subfolders in attachment folders as orphans (bug) 0.16.2 Fix: Unable to download any filetypes from web diff --git a/manifest.json b/manifest.json index 1567398..cfae28c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-local-images-plus", "name": "Local Images Plus", - "version": "0.16.2", + "version": "0.16.3", "minAppVersion": "1.0.3", "description": "Local Images Plus plugin searches for all external media links in your notes, downloads and saves them locally and adjusts the links in your notes to point to the saved files.", "author": "catalysm, aleksey-rezvov, Sergei Korneev", diff --git a/obsidian_local_images_plus_latest/manifest.json b/obsidian_local_images_plus_latest/manifest.json index 1567398..cfae28c 100644 --- a/obsidian_local_images_plus_latest/manifest.json +++ b/obsidian_local_images_plus_latest/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-local-images-plus", "name": "Local Images Plus", - "version": "0.16.2", + "version": "0.16.3", "minAppVersion": "1.0.3", "description": "Local Images Plus plugin searches for all external media links in your notes, downloads and saves them locally and adjusts the links in your notes to point to the saved files.", "author": "catalysm, aleksey-rezvov, Sergei Korneev", diff --git a/package-lock.json b/package-lock.json index f1c8146..5b63f60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-local-images-plus", - "version": "0.16.2", + "version": "0.16.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "obsidian-local-images-plus", - "version": "0.16.2", + "version": "0.16.3", "license": "MIT", "dependencies": { "async-lock": "^1.4.0", diff --git a/package.json b/package.json index ec6a078..b9c097f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-local-images-plus", - "version": "0.16.2", + "version": "0.16.3", "description": "This is a plugin for Obsidian (https://obsidian.md) that downloads media files from external links and save in local vault.", "main": "build/main.js", "scripts": { diff --git a/src/config.ts b/src/config.ts index 8825892..1a7ee77 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,4 +1,4 @@ -export const APP_TITLE = "Local Images Plus 0.16.2"; +export const APP_TITLE = "Local Images Plus 0.16.3"; diff --git a/src/main.ts b/src/main.ts index c109a82..d5df25b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -523,7 +523,7 @@ export default class LocalImagesPlugin extends Plugin { } if (allAttachments) { for (const attach of allAttachments) { - if (!allAttachmentsLinks.includes(attach.name)) { + if (!allAttachmentsLinks.includes(attach.name) && attach.children == undefined ) { logError("orph: " + attach.basename) orphanedAttachments.push(attach) } @@ -640,10 +640,10 @@ export default class LocalImagesPlugin extends Plugin { } for (const attach of allAttachments) { - if (!allAttachmentsLinks.includes(attach.name)) { + if (!allAttachmentsLinks.includes(attach.name) && attach.children == undefined ) { logError(allAttachmentsLinks) logError(attach.name) - logError("orph: " + attach.basename) + logError("orph: " + attach.name) orphanedAttachments.push(attach) } }