Fix Issue on the directory working now we works on documents, need to have an persistent files, and fix issue on metadata , wrong use on type name is contrary :/