hffqyd / tw5-server

A protable local server for TiddlyWiki5 that saves and backups wiki.
GNU General Public License v3.0
25 stars 4 forks source link

Server got crash when load files #3

Closed directentis1 closed 1 month ago

directentis1 commented 1 month ago

I tried to use tw5server on Android and Linux, it got crash often if I put tiddly html files in another dictionary level.

Something like.. image

I'm not sure if it's from nim upstream?

hffqyd commented 1 month ago

Thanks for your feedback. I've fixed the bug and updated a new version. Please have a try and if anything happens, please tell me.

directentis1 commented 1 month ago

Thanks for the quick response!! I will try it right away and let you know 😊

directentis1 commented 1 month ago

After a day of use, I found it worked stably and didn't crash anymore!!

I think I will close this issue here.

Just one additional question: if I have many tiddlywiki html files in subpaths in the directory tree from the root directory of tw5-server up, how should the backup of these files be handled?

hffqyd commented 1 month ago

Thanks for your test.

As for the second question, all backups of tiddlywiki html files are saved in the backup dir of the root path currently. So if two different wiki files had the same name AND were saved at exactly the same time (by time stamps like 20240123161514), the two backups might conflict.

directentis1 commented 1 month ago

The second chance I think is rarely possible, although not necessarily impossible. Anyway, thank you for the update. 😇