When running the following code to retrieve items under a document library I get an error,
Code;
$listItems = Get-PnPListItem -List $list.Title -Fields HasUniqueRoleAssignments, RoleAssignments -Query "<View Scope = \'RecursiveAll\'><Query><Where><Eq><FieldRef Name='FileDirRef' /><Value Type='Text'>/folderPath</Value></Eq></Where></Query>"
Error;
Get-PnPListItem: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.
I want to extract only the root folders under the library and nothing else.