Sha256: 910a34ccae4604c3ea60044fc1a75fc6598e912ae008459e667398301440217e
Contents?: true
Size: 371 Bytes
Versions: 20
Compression:
Stored size: 371 Bytes
Contents
use crate::fs::asyncify; use std::io; use std::path::{Path, PathBuf}; /// Reads a symbolic link, returning the file that the link points to. /// /// This is an async version of [`std::fs::read_link`]. pub async fn read_link(path: impl AsRef<Path>) -> io::Result<PathBuf> { let path = path.as_ref().to_owned(); asyncify(move || std::fs::read_link(path)).await }
Version data entries
20 entries across 20 versions & 1 rubygems