virtual_fs::ops

Function touch

Source
pub fn touch<F>(fs: &F, path: impl AsRef<Path> + Send) -> Result<(), FsError>
where F: FileSystem + ?Sized,
Expand description

Update a file’s modification and access times, creating the file if it doesn’t already exist.