CIMSTA / obsidiosaurus

Obsidian -> Docusaurus Converter
https://cimsta.github.io/obsidiosaurus-docs/
MIT License
143 stars 12 forks source link

Bug: ENOENT when trying to load file that has been removed #14

Open jp-performance opened 1 year ago

jp-performance commented 1 year ago

When adding a file in the markdown that is saved in the /assets folder and the file is later on being removed (from the /assets folder as well as the reference within the markdown file), Obsidiosaurus runs into the following error:

Error: ENOENT: no such file or directory, copyfile '/Users/jp-performance/Desktop/wiki/vault/assets/example.svg' -> '/Users/jp-performance/Desktop/wiki/website/static/assets/example.svg'.

The markdown files itself are converted correctly. After manually deleting the respective asset in the assetInfo.json, the conversion process finishes without throwing an error.