Implement this interface to monitor the root file
Get File to path with help of reference anchor.
Get File to path with help of reference anchor.
Anchor is used as a reference in case that path is not absolute. Anchor could be path to directory or path to file. If anchor is file, then file's parent dir is used as an anchor.
If anchor itself is relative, then anchor is used together with current working directory.
NOTE: If anchor is non-existing path on filesystem, then it's always treated as file, e.g. it's last component is removed when it is used as an anchor.
path to be used as anchor
as string
optional path fragments
absolute, normalize path