Remove directories from file list.