use crate::futures::file::metadata::FileKind;
use std::path::{Path, PathBuf};
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct DirEntry {
path: PathBuf,
kind: FileKind,
}
impl DirEntry {
pub(crate) fn new(path: PathBuf, kind: FileKind) -> Self {
Self { path, kind }
}
pub fn path(&self) -> &Path {
&self.path
}
pub fn into_path(self) -> PathBuf {
self.path
}
pub fn kind(&self) -> FileKind {
self.kind
}
}