Create two files and list them.

This commit is contained in:
Yifan Wu 2020-12-19 15:28:42 +08:00
parent 00eaa64e7d
commit 3c1419185d
7 changed files with 104 additions and 36 deletions

View file

@ -4,7 +4,6 @@ extern crate alloc;
use easy_fs::{
BlockDevice,
EasyFileSystem,
Inode,
};
use std::fs::{File, OpenOptions};
use std::io::{Read, Write, Seek, SeekFrom};
@ -54,7 +53,7 @@ fn easy_fs_pack() -> std::io::Result<()> {
root_inode.create("filea");
root_inode.create("fileb");
for name in root_inode.ls() {
println!("name");
println!("{}", name);
}
Ok(())
}