add function for "ls" dir in path.c file.c

file.c:add openfile function.For open dir or file.
path.c:add PATH_CMD_OPEN_DIR case

todo:complete open dir in romfs.c