Currently, the `path_parser` only treats directory paths as valid. It shouldn't be hard also to make it work for files