How to convert a folder back to a document?

There is a folder which I want to convert as a document. How can I do that? I couldn’t find any way to achieve this.