@detachall doesn't ignore sub-folders whose name begins with a period while @attachall does

Issue #139 new
Chorazin Allen created an issue

Test Structure: #RLV/Folder

Within #RLV/Folder there is #RLV/Folder/Folder1 and #RLV/Folder/.Folder2 (note the period)

Put an object in Folder1 and Folder2 and have them attaching to different locations for ease of testing

Doing an @attachall:Folder only the item in Folder1 will get worn (expected behaviour)

Manually wear the object in Folder2

Now do @detachall:Folder and both objects will get detached

So, the (period)Folder is getting ignored on recursive attach, but not on recursive detach.

Note: This is an abstract of a real situation - https://kokua.atlassian.net/browse/KKA-688

Comments (1)

  1. Chorazin Allen reporter

    After some code-reading, this one looks like it’s a case of not being anticipated in the code design. A recursive detachall is performed using a list of descendants generated by a standard viewer routine and that won’t understand the need to ignore dot folders. It probably needs rewriting to do its own iterating as attachall does.

  2. Log in to comment