standard behavior of links is: if a folder, then enter, if a file, then download.
Some exceptions to this, like pictures that get shown, are managed by the browser.
I don't see a reason for the vfs file to act differently.
As a side note, the vfs is not a template. Those go by "tpl" extension. VFS is a virtual file system, that is a bunch of file (organized).
If you explain what you meant to do, i can suggest a way.