How to prevent lost+found element before they are created with a directory uncheckout.

I'm often asked: "Why does ClearCase not provide a warning before you uncheckout a directory rather than tell you elements went there after the directory uncheckout?" I can't answer as to why, but I can provide the means to give the requested warning.

You can write a trigger that will compare the directory listing of the current version of the directory to the predecessor version and provide a warning list of possible elements that will go to lost+found if the uncheckout proceeds.

There is one written already; when this trigger is applied it will list any child elements of the directory that might go to lost+found before the uncheckout is attempted (so you have a chance to change your mind). ...(more)...

--- Read the whole FAQ article here.