Recently I was studying @saqimtiaz’s ImportToExternalFile plugin. Since I used the includewiki folder and set the default-tiddler-location to the includewiki folder path, but since tiddlywiki does not support the files folder of the sub-wiki, I need to use …/…/files to store files. I accidentally discovered that the following two writing methods have the same effect. Should I correct them to the correct path? @jeremyruston
A half-baked idea is to use file:/// to point to the destination folder/destination file
My running environment involves nodejs, which is not suitable for single file html
Hi @oeyoews I think the behaviour here is an artefact of the way that Node.js path.resolve
works. For example, the following example returns true
in the Node REPL:
require("path").resolve("/","../a") === require("path").resolve("/","./a")
In other words, attempts to back up beyond the root directory are ignored.
To answer your original question, the ./files/404.png
form is to be preferred as it is more “correct”.
1 Like