이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

resolvepath Macro

2015년 2월 21일 오후 10:38

The resolvepath macro takes a relative path and an absolute path. It interprets the former relative to the latter, and returns the absolute equivalent of the former.

Folders in the paths are delimited by /.

The special folder name . denotes the current folder, and .. denotes the parent folder.

If the absolute path indicates a folder, it needs to end with /. Anything after the final / is treated as an arbitrary filename within the intended path, and is discarded.

If no absolute path is supplied, the relative path is returned unchanged, except that anything after the final / is discarded.

The return value is a path, but does not end with /.

Parameters

source
the relative path
root
the absolute path

Examples