Sha256: 314303525fb2a78bc2ebd51f5ebe725a8d59a8e646d2e594a1dcbcfb711b3a11
Contents?: true
Size: 329 Bytes
Versions: 20
Compression:
Stored size: 329 Bytes
Contents
use crate::fs::asyncify; use std::io; use std::path::Path; /// Removes an existing, empty directory. /// /// This is an async version of [`std::fs::remove_dir`]. pub async fn remove_dir(path: impl AsRef<Path>) -> io::Result<()> { let path = path.as_ref().to_owned(); asyncify(move || std::fs::remove_dir(path)).await }
Version data entries
20 entries across 20 versions & 1 rubygems