Come to think of it - maybe a convenience function 'file:current-dir()' (= file:parent('.')) would be worthwhile, considering the importance of the current directory.
True; maybe we could add even two functions...
file:current-dir() file:base-dir()
...as in many cases it's also interesting to find paths relative to the query file directory. Would that make sense to you? I am not quite sure if all static base URIs can be resolved to local file paths, though.
Christian