wrap files by directory