Flatten file/folder output.