I agree with Scott there that it would be the best idea if you cannot use the parentPath property. Though I would strongly recommend that you change the structure of your DAM instead to help you with this.
I would rather use this: dam/images/folder1 dam/images/folder2 dam/excludable_folder
Then you could move all the files outside the main location for images and you wont have a problem with a fast query for all the "valid" pictures for you by just querying dam/images/.
You want to query DAM assets - but exclude assets within a specific folder? If so - you can use the Query Builder API - then get your reset set. Figure out where each asset is located and then populate a Java list with those assets that do meet your requirements. Exclude the assets that you do not want to use.
I agree with Scott there that it would be the best idea if you cannot use the parentPath property. Though I would strongly recommend that you change the structure of your DAM instead to help you with this.
I would rather use this: dam/images/folder1 dam/images/folder2 dam/excludable_folder
Then you could move all the files outside the main location for images and you wont have a problem with a fast query for all the "valid" pictures for you by just querying dam/images/.