Using Files, is that possible? I've tried:
SELECT Id, (SELECT Id FROM ContentVersions) FROM ContentFolder
SELECT Id, (SELECT Id FROM ContentDocuments) FROM ContentFolder
SELECT Id, (SELECT Id FROM ContentDocumentLinks) FROM ContentFolder
and these queries do not work.