dullage / flatnotes

A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.
MIT License
1.24k stars 76 forks source link

Symlink aren't detected #235

Closed MathiasDPX closed 1 week ago

MathiasDPX commented 3 weeks ago

I tried to create symlink to another note to have publics and private note I made the link with ln -s /home/mathias/notes/'Dream Dimension.md' 'Dream Dimension.md'

To be sure, I made a .md file named test inside with Hello World! inside

I see the test note but not the symlink

image image

dullage commented 3 weeks ago

Odd. From what I can see, there's no reason it shouldn't be listed. I'll try and get some time to replicate locally and come back to you.

dullage commented 1 week ago

@MathiasDPX - Ah, I think the problem is using symlinks (soft links) with Docker. Although the link is there, and visible to flatnotes, when flatnotes tries to open it, it fails as the file it points to can't be reached.

I think you have to set them up in a very particular way in order for the link to work both inside and outside the container, and even then it doesn't look advisable.

Hard links appear to work ok though, so maybe that would work for your use case?

MathiasDPX commented 1 week ago

@dullage Hello, It work perfectly! You always have a solution 🔥