detect directories during data normalization and adjust file-only block.