예제 #1
0
파일: shell.py 프로젝트: kitsully/PFS
def cd(path): 
    path_name_layer.chdir(path)
예제 #2
0
파일: root.py 프로젝트: kitsully/PFS
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:]