ozntel / oz-clear-unused-images-obsidian

Obsidian plugin to clear the images that are not used in note files anymore
194 stars 16 forks source link

Folder exclusion issue #6

Closed gitroms closed 3 years ago

gitroms commented 3 years ago

Hi, I have a folder with images that I want to exclude from being deleted if not used. In this folder I have 2 images used for banner, and one of them is not used

image

KnowledgeBase is the name of my Obsidian Vault Folder is under C:/path/KnowledgeBase/banner Under "Clear Unused Images" plugin I've set a "Excluded Folder Full Paths" to: KnowledgeBase/banner

image

When I hit "clear Unused images", the used image is not deleted, but the unused file is deleted.

image

Did I miss something in the configuration of the plugin? or is it a bug? Obsidian Version: 0.12.16 / Clear Unused Images plugin version 1.0.3

Thanks for the support

ozntel commented 3 years ago

If the name of your vault KnowledgeBase, you should only write banner in excluded folder paths, not KnowledgeBase/banner. Otherwise it will search for another KnowledgeBase folder in your vault.