mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Add documentation
This commit is contained in:
@@ -511,6 +511,7 @@ pub fn open_file_std<P: AsRef<std::path::Path>>(
|
||||
}
|
||||
}
|
||||
|
||||
/// Reads directory and returns a vector of directory entries.
|
||||
pub async fn read_dir(path: &Path) -> Result<Vec<fs::DirEntry>> {
|
||||
let res = tokio_stream::wrappers::ReadDirStream::new(fs::read_dir(path).await?)
|
||||
.try_collect()
|
||||
|
||||
Reference in New Issue
Block a user