Notes:
- (*1) If permissons present (or in collapsed subdirectory), directory should be marked.
- (*2) both should work. If this was the first item, corresponding directory should not be marked before, but should be marked after addition.
- (*3) both should work. If this was the last item, corresponding directory should be marked before, but not after.