This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Simple query to check if a folder exist

I know this may come off as a very basic question, but which table contains the list of all existing directories within an endpoint? 

I managed to come with this SQL query, but it only returns the folder if there is any file within the folder, hence the hash table.

Fullscreen
1
2
3
4
5
SELECT
directory
FROM hash
WHERE
directory = '$$folderPath$$'
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Table directories doesn't exist, neither does table folders, so how do I simply check if a folder exists within a given path regardless if it contains files or not?

Thank you.



This thread was automatically locked due to age.