mirror of
https://github.com/sharkdp/fd.git
synced 2026-09-21 12:44:08 +08:00
convert to path instead of cloning in batch exec
update changelog
This commit is contained in:
@@ -37,6 +37,13 @@ impl DirEntry {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn into_path(self) -> PathBuf {
|
||||
match self.inner {
|
||||
DirEntryInner::Normal(e) => e.into_path(),
|
||||
DirEntryInner::BrokenSymlink(p) => p,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn file_type(&self) -> Option<FileType> {
|
||||
match &self.inner {
|
||||
DirEntryInner::Normal(e) => e.file_type(),
|
||||
|
||||
Reference in New Issue
Block a user