Hi! How can I search all the empty folders in a project?
system.tag.browse(
path = '[ForTestRemove]',
filter = {'tagType':'Folder', 'hasChildren':False}
)
It returns this:
Return
[
{
"fullPath": {
"pathParts": [
"_types_"
],
"source": "ForTestRemove"
},
"hasChildren": false,
"name": "_types_",
"tagType": "Folder"
},
{
"fullPath": {
"pathParts": [
"enterp"
],
"source": "ForTestRemove"
},
"hasChildren": true,
"name": "enterp",
"tagType": "Folder"
},
{
"fullPath": {
"pathParts": [
"folder1"
],
"source": "ForTestRemove"
},
"hasChildren": true,
"name": "folder1",
"tagType": "Folder"
},
{
"fullPath": {
"pathParts": [
"folder2"
],
"source": "ForTestRemove"
},
"hasChildren": true,
"name": "folder2",
"tagType": "Folder"
}
]
Any idea on how can I do this?
Thanks in advance!