@ -1,4 +1,4 @@
use vfs::{INode, Result};
use vfs::{INode, Result, FileInfo};
use alloc::sync::Arc;
pub struct File {
@ -26,4 +26,8 @@ impl File {
self.offset += len;
Ok(len)
}
pub fn info(&self) -> Result<FileInfo> {
self.inode.info()