mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
feat: size calculator for remote file systems (#3170)
This commit is contained in:
parent
a3fc9a0ec7
commit
7deeaa4356
53 changed files with 721 additions and 567 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue