feat: size calculator for remote file systems (#3170)

This commit is contained in:
三咲雅 misaki masa 2025-09-15 21:42:33 +08:00 committed by sxyazi
parent a3fc9a0ec7
commit 7deeaa4356
No known key found for this signature in database
53 changed files with 721 additions and 567 deletions

View file

@ -10,10 +10,13 @@ pub struct DirEntry<'a> {
}
impl<'a> DirEntry<'a> {
#[must_use]
pub fn path(&self) -> PathBuf { self.dir.join(&self.name) }
#[must_use]
pub fn name(&self) -> Cow<'_, OsStr> { self.name.to_os_str() }
#[must_use]
pub fn long_name(&self) -> Cow<'_, OsStr> { self.long_name.to_os_str() }
pub fn attrs(&self) -> &Attrs { &self.attrs }