← Back to team overview

zim-wiki team mailing list archive

understanding directory usage

 

Hi everybody,

I'm trying to understand Zim's usage of directories.
Since I make use a lot of absolute paths, I never noticed that Zim uses relative paths in a rather peculiar way
(please excuse me if it has been already discussed, I didnt find anything).

Just starting from scratch with a test page in a given dir:
/my/test/dir> zim here.txt

here.txt is of course created in /my/test/dir.
But if I have the image /my/test/dir/testimage.jpg, why is it that {{testimage.jpg}} reports a broken link, while {{../testimage.jpg}} works???

Even more confusing: a link like: [[there]] works flawlessly loading there.txt from /my/test/dir, so the logic used for images is different here!


I'm a bit confused here....

alessandro

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/  Dr.Alessandro Magni
\        Electromagnetics Division
/        INRiM Strada delle Cacce 91, 10135 Torino (ITALIA)
\        Email magni@xxxxxxxx
/        Tel: 0039-011-3919821  Fax: 0039-011-3919834
\        URL http://www.inrim.it/~magni
/ Our business in life is not to succeed but to continue to fail
\ in high spirits.  -- Robert Louis Stevenson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Follow ups