Sha256: 93c104a21253372fef7056ab82e6065b0a1a8fc9be8b7329dfd5a8dd07c618b0
Contents?: true
Size: 409 Bytes
Versions: 19
Compression:
Stored size: 409 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`][std] /// /// [std]: 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
19 entries across 19 versions & 1 rubygems