While doing this:
Code
def delete_empty_folders():
folders_list = system.tag.browse(
path = "[" + conf.default_uns + "]",
filter = {'tagType': 'Folder', 'recursive': True}
)
again = True
while again:
again = False
for folder in folders_list:
# If is an empty folder
if (not folder.get("hasChildren")
and folder.get("name") != "_types_"):
# We should scan all the folders again
again = True
system.tag.deleteTags([
folder.get("fullPath").toString()
])
folders_list = system.tag.browse(
path = "[" + conf.default_uns + "]",
filter = {'tagType': 'Folder', 'recursive': True}
)
return
I got this warnings:
15:01:16.074 [AWT-EventQueue-0] WARN com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode -- Node[New Folder] was asked for child 1 while status=LOADING.
15:01:31.160 [AWT-EventQueue-0] WARN com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode -- Node[ForTestRemove] was asked for child 2 while status=LOADING.
15:02:19.701 [AWT-EventQueue-0] WARN com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode -- Node[New Folder] was asked for child 2 while status=LOADING.
15:02:19.704 [AWT-EventQueue-0] WARN com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode -- Node[ForTestRemove] was asked for child 2 while status=LOADING.
Any idea?
Even when using time.sleep(5) the warnings pop up.
Thx in advance!