Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Bibnotes doesn't copy images into the Vault #166

Open
eazy12 opened this issue May 10, 2023 · 1 comment
Open

[Bug] Bibnotes doesn't copy images into the Vault #166

eazy12 opened this issue May 10, 2023 · 1 comment

Comments

@eazy12
Copy link

eazy12 commented May 10, 2023

Bibnotes doesn't copy images into the Vault. Obsidian's console outputs this message:
Uncaught Error: ENOENT: no such file or directory, copyfile '/home/user/Zotero/storage/ZTWTKZRM/image.png' -> 'home/user/Documents/Obsidian Vault/Bibnotes_export/Booksname_ZTWTKZRM.png'.

New path lacks the / sign at the start of the string. This line of code is responsible for creating this path but if-statement is false for me despite being of Fedora Linux 38 user.

I've managed to make image copy work by monkey-patching (I hope I used right term) by removing if-statement and just keeping its body code right into Obsidian's console.

OS: Fedora Linux 38
Kernel: Linux 6.0.8-xm1.0.fc38.x86_64
Zotero: 6.0.26
Obsidian: 1.2.8
Bibnotes Formatter: 0.9.219

@eazy12
Copy link
Author

eazy12 commented May 11, 2023

Seems like this bug happens only for files stored with "Attach Link to File" instead of ones stored as a copy of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant