farling42 / obsidian-import-json

Plug-in for Obsidian.md which will create Notes from JSON files
MIT License
85 stars 5 forks source link

Overwrite feature not working...? #41

Closed rustyleaf closed 1 year ago

rustyleaf commented 1 year ago

Hi again @farling42 ,

I have also the overwrite feature is not working on my json imports. They do not overwrite the file... I get an error if teh files already exists? Have attached screenshots of the import. Screenshot 2023-02-28 at 10 37 21 Screenshot 2023-02-28 at 10 37 54

farling42 commented 1 year ago

Can you update to the latest version, which handles overwrite slightly differently.

rustyleaf commented 1 year ago

Thanks @farling42 .

I updated and restarted Obsidian etc... and still getting the same although i notice that there is "replace" in teh menu but OVERWRITE in the text on the left-handside...

I have attached screenshots... Screenshot 2023-02-28 at 12 08 23 Screenshot 2023-02-28 at 12 08 00 Screenshot 2023-02-28 at 12 07 36

farling42 commented 1 year ago

I'll fix the hint text problem.

Is the replace option working for you now?

rustyleaf commented 1 year ago

No sadly not... I am still getting the errors as per the screenshot: Error: File already exists

rustyleaf commented 1 year ago

Also can I send you a tip somehow - I tried to send using BAT tokens but that didn't work i don't think...?

farling42 commented 1 year ago

Also can I send you a tip somehow - I tried to send using BAT tokens but that didn't work i don't think...?

Any of the "Sponsorship" options in the right-hand bar of https://github.com/farling42/obsidian-import-json

farling42 commented 1 year ago

Version 0.29.2 changes how existing notes are updated - instead of deleting the note and creating a new note, the existing note is simply modified to contain the new contents.

If this still doesn't work for you, it might be worth checking whether the files have been created whilst Obsidian was running as an administrator (or in some other way that the operating system's file permissions are wrong on the files.)

AMGMNPLK commented 1 year ago

I'm had the same problem (MacOS). It was because I used an absolute path to the folder instead of a relative one. Not it is solved.

farling42 commented 1 year ago

It might be that the destination folder you've set in the dialog should not start with a "/".

Or that it doesn't allow a path in that field. It might only work with a single folder name.