Separate the files by directory