[GATEWAY] Cut over MetaDataStateFormat to Path API

Rather than filtering ourself, we could alternatively pass prefix as glob to newDirectoryStream, and it would follow filesystem rules.