[GATEWAY] Cut over MetaDataStateFormat to Path API

we could pass a glob with regex:xxx to newDirectoryStream if we want