restruct dir