Are the filenames unique? If so, you could scrap the list entirely and just use a pure dictionary for all the files. e.g. (a hypothetical website)
{
"/index.html" : 5467,
"/about.html" : 3425,
"/css/main.css" : 9876
}
etc...
Now, you don't get "name" and "size", you just use key and value, but often this is more natural. YMMV.
If you really want a "size" for clarity, or you need more than one value for the file, then:
{
"/index.html" : { "size": 5467, "mime_type" : "foo" },
"/about.html" : { "size": 3425, "mime_type" : "foo" }
"/css/main.css" : { "size": 9876, "mime_type" : "bar" }
}