It happened to me several times, but I imagine it happened to you during the development of a portlet, the need to select a file or folder from Liferay Document Library; something simple at first glance because the core portlets already do this in several points.
But replicate the same behaviour within your own portlet is not so easy and requires several hours of Liferay source code analysis to figure out where to put your hands; those of you who have ever put his hands in the source code of Liferay and especially in AlloyUI source code, knows how frustrating it can be.
So I created the
liferay-dl-util module and packed everything with a hook released on the Liferay Marketplace, so that anyone can download and use it immediately.
The extension is available on Liferay Marketplace: Document Library JS Util