assignment3 finish construct the dir nodes and file nodes