utime

A missing utime function for Rust.

Standard library of Rust doesn't provide stable way to set atime/mtime of a file. This crate provides stable way to change a file's last modification and access time.

toml [dependencies] utime = "0.2" ```rust use std::fs::File; use utime::*;

File::create("target/testdummy").unwrap(); setfiletimes("target/testdummy", 1000000, 1000000000).unwrap();

let (accessed, modified) = getfiletimes("target/testdummy").unwrap(); asserteq!(accessed, 1000000); asserteq!(modified, 1000000000); ```



utime is primarily distributed under the terms of both the [MIT license] and the [Apache License (Version 2.0)]. See [COPYRIGHT] for details.