Having the following code in an application extension:
TypeScript
import {sp} from "@pnp/sp";
/*******************************************************************/
const shpList = sp.site.rootWeb.lists.getById(ListId);
shpList.rootFolder.folders.add('folder1');
/*******************************************************************/
I can create a folder inside a list. But I can only access it by typing the URL, it does not appear in the list view.
How can I make folders that are visible in the list?
Note that if I make a folder manually, it does appear.