You can translate the question and the replies:

Getting folders and subfolders using VQL

Hi all, Is it possible to execute a VQL query to get all folders with their full paths? For example, if I have a folder called 1. Base Views and in that folder I have a folder called Archive is it possible to query and get: 1. Base Views 1. Base Views/Archive I am using python to retrieve the list of folders and so far I can use `SELECT name from GET_ELEMENTS() where input_database_name=<database_name> and type='folder'` but it just returns the name of the folders and not the full paths. Thanks!
user
29-04-2022 04:15:07 -0400

1 Answer

solved it! `SELECT name, folder from GET_ELEMENTS() where input_database_name=<database_name> and type='folder'`
user
29-04-2022 04:38:05 -0400
You must sign in to add an answer. If you do not have an account, you can register here