cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to list all assets of non-directory type?

lemo
New Contributor II

Is there a way to get a list of all assets that are not directories? i.e. not type โ€˜Dirโ€™?

I tried to do this by looping over a โ€˜SnapLogic Listโ€™ snap to recursively navigate down through the directory paths (refer below) but it results in a stack overflow.
getAssetsOfNonDirType

I know I canโ€™t use โ€˜Pipeline Executeโ€™ for the pipeline to call itself since recursion is not supported.

I suppose I could just use assume the path depth will always be at most three and use three separate โ€˜SnapLogic Listโ€™ snaps, but this seems quite hacky.

Any other ideas?

2 REPLIES 2

aleung
Contributor III

04%20PM

Just created this pipeline to show all non-Dir assets. Does this work for you?

lemo
New Contributor II

Thanks Alan, I appreciate your response and for putting that together for me. Thatโ€™s the three separate โ€˜SnapLogic Listโ€™ snaps approach I was trying to avoid, but I suppose itโ€™s as good as we can get for now.

Cheers