impl File.get_entry()

master
WangRunji 6 years ago
parent fe473bc987
commit 978c3a70ca

@ -1,5 +1,5 @@
use vfs::{INode, Result, FileInfo};
use alloc::sync::Arc;
use alloc::{sync::Arc, string::String};
pub struct File {
inode: Arc<INode>,
@ -30,4 +30,8 @@ impl File {
pub fn info(&self) -> Result<FileInfo> {
self.inode.info()
}
pub fn get_entry(&self, id: usize) -> Result<String> {
self.inode.get_entry(id)
}
}
Loading…
Cancel
Save