In dokuwiki, there is a big technical debt where the path of a file is still represented as today without root.
To be able to know if it's a relative path or an absolute path, you need therefore to know the context each time that you use it which is almost always.
Example: the data may return false when this is a root path 1)