--- created: 2024-05-05T11:31 updated: 2024-05-05T11:32 --- ```dataviewjs // get files via Obsidian api - filter pdf extension and path with the string "Preparation" const files = app.vault.getFiles().filter(file => ((file.extension == 'pdf') && file.path.includes("07 Thesis"))); // creating a list with links dv.list(files.map(f => dv.fileLink(f.path))) dv.sort ```