FWIW, I wrote a small paper on this general topic a few years ago, collecting earlier work and own ideas.
"Files as Directories: Some Thoughts on Accessing Structured Data within Files"
"Files as Directories: Some Thoughts on Accessing Structured Data within Files"
Is this paper freely available somewhere?