benjypng / logseq-localassets-plugin

MIT License
33 stars 7 forks source link

windows filepaths issue #16

Closed cannibalox closed 1 year ago

cannibalox commented 1 year ago

hey !

on windows, using embed file from other folder, using the flebrowser, the filepath looks like [📄 craup-7594.pdf](file://Z:\_books\_philo\virilio\craup-7594.pdf) which errors as the path is actually parsed as [📄 craup-7594.pdf](file://Z:_books\_philo\virilio\craup-7594.pdf) (note the missing bakslash: file://Z:_books... instead of file://Z:\books...

possible solutions :

maybe the npm module https://www.npmjs.com/package/normalize-path can help ?

thank you for the plugin !

cannibalox commented 1 year ago

closing, it's a logseq issue with paths that begin with underscores...