MCPcopy Create free account
hub / github.com/chatmail/core / read_dir

Function read_dir

src/tools.rs:536–541  ·  view source on GitHub ↗

Reads directory and returns a vector of directory entries.

(path: &Path)

Source from the content-addressed store, hash-verified

534
535/// Reads directory and returns a vector of directory entries.
536pub async fn read_dir(path: &Path) -> Result<Vec<fs::DirEntry>> {
537 let res = tokio_stream::wrappers::ReadDirStream::new(fs::read_dir(path).await?)
538 .try_collect()
539 .await?;
540 Ok(res)
541}
542
543pub(crate) fn time() -> i64 {
544 SystemTime::now()

Callers 10

poke_specFunction · 0.85
misc_get_stickersMethod · 0.85
newMethod · 0.85
remove_unused_filesFunction · 0.85
ensure_accounts_dirMethod · 0.85
has_backupFunction · 0.85
import_self_keysFunction · 0.85
test_create_dupFunction · 0.85
test_double_extFunction · 0.85
test_http_cacheFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_create_dupFunction · 0.68
test_double_extFunction · 0.68
test_http_cacheFunction · 0.68