Unseekable files need not to manipulate the offset

This commit is contained in:
Shaowei Song
2024-09-02 09:48:15 +00:00
committed by Tate, Hongliang Tian
parent 92680ea25d
commit 9638744712
3 changed files with 19 additions and 0 deletions

View File

@ -426,6 +426,10 @@ pub trait Inode: Any + Sync + Send {
true
}
fn is_seekable(&self) -> bool {
true
}
/// Get the extension of this inode
fn extension(&self) -> Option<&Extension> {
None