Sha256: 96475771e9c52678768288d8df6814216e0801bebc848481597ad34e829a5854
Contents?: true
Size: 349 Bytes
Versions: 19
Compression:
Stored size: 349 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`](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
19 entries across 19 versions & 1 rubygems