A query to list all the files in the folder

Hello everyone,
I was just trying to get a list of all the files in a particular folder to sort them to their respective folder after an edit. I tried to add a query path:Folder_Name, it did list all the files in that folder, but also the files inside the subfolders. In order to avoid them, I tried to do somwthing like path:Folder_Name -path:Folder_Name/*, but it didn’t seem to work. Individually removing the folder does work, but I was wondering how can I just exclude all the subfolders at once?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.