feature #2097: Delete sometimes in TM shared has to deal with directories