Check if an external file exists

36 views
Skip to first unread message

Hubert

unread,
Nov 16, 2018, 6:00:09 AM11/16/18
to TiddlyWiki
Hello,

Using <$reveal>, I was trying to find a way to check whether a file, located in the same folder as the TW file, exists. I could not make it work.

For an example text file named test.txt and located in the same folder as the TW file, I was using [ext[test.txt]] but this only renders a link to the file with no 'fallback' emptyMessage-like parameter to indicate whether the link is pointing to a non-existing file or not. In the same way, there was no way to transclude the contents of such a file.

My experiments with the <$view> and <$translude> whose contents could be fed to the <$reveal> widget for evaluation did not result in anything meaningful as the transclusion of the contents of an external files does not seem to work. I know it's a bit far-fetched and naive but I was just experimenting as usual.

Thanks in advance for any ideas.

Best,
Hubert






PMario

unread,
Nov 16, 2018, 6:24:47 AM11/16/18
to TiddlyWiki
Hi Hubert,

That's a browser problem.

Modern browsers don't allow us such kind of access to the local disk. because of security and privacy reasons.

At the moment, there is no way to check this info, other than manually click the link.

-mario
Reply all
Reply to author
Forward
0 new messages