It's all about the answers!

Ask a question

DNG 6.0 : how to check if folder already exists in DNG project(root folder)


Naveen Tyagi (19769152) | asked Oct 05 '15, 7:49 a.m.
how to check by Name a folder already exists in root folder in DNG project.

i have already implemented retrieval of folder  where i can check whether perticlar folder is already there or not. But i am serching for query based solution where i can pass folder name in query and check. Thanking in advance.

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Oct 07 '15, 1:54 a.m.
As I mentioned in the other post, you cannot actually "search" a folder by its name. All you can do is get the root folder, then its sub folders, then sub folders of sub folders, and so on.
Naveen Tyagi selected this answer as the correct answer

Comments
Naveen Tyagi commented Oct 07 '15, 1:59 a.m.

Thanks!!! yes, That's same approach i start implementing, i have used recursion to pull out folder inside folder till last folder which contains no other folder. but if folders are more than its taking too much time. your advice to reduce this fetching folder list.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.