def cd(path): path_name_layer.chdir(path)
import file_name_layer import path_name_layer inode_number._inode_table[0].add_block() file_name_layer.mkdir("dir", 0) d_inode = path_name_layer.path_to_inode_number("dir", 0) print "dir", d_inode file_name_layer.create_file("wooo", d_inode) file_name_layer.create_file("FUCKYES", d_inode) file_name_layer.mkdir("dir2", d_inode) d_inode2 = path_name_layer.path_to_inode_number("dir2", d_inode) print "dir2", d_inode2 path_name_layer.chdir("/") print path_name_layer._wd path_name_layer.chdir("/dir") print path_name_layer._wd path_name_layer.chdir("/dir/dir2") #print path_name_layer._wd #path_name_layer.chdir("/dir2") #print inode_number._free_inodes[0:]