filetime_creation

Crates.iofiletime_creation
lib.rsfiletime_creation
version0.2.0
sourcesrc
created_at2022-08-28 04:03:54.926433
updated_at2024-01-26 01:07:39.547779
descriptionAn enhanced version of filetime, which can set file creation time on Windows before Rust 1.75.
homepagehttps://github.com/czy-29/filetime_creation
repositoryhttps://github.com/czy-29/filetime_creation
max_upload_size
id653699
size40,737
29 (czy-29)

documentation

https://docs.rs/filetime_creation

README

filetime_creation

Notice:

Rust 1.75 stabilized std::fs::File::set_times and FileTimesExt trait. This means that if you use Rust 1.75 and above, or your library's MSRV allows the use of 1.75 and above, you no longer need to use this crate, and we recommend that you use the standard library directly.

But if you are unable to use Rust 1.75 and above for some reason, then you still need to use this crate as a workaround.

Documentation

An enhanced version of filetime, which can set file creation time on Windows.

Internally, this use SetFileTime Win32 API to set the file creation time on Windows.

On other platforms, all functions will just call the corresponding filetime's function, and ignore the file creation time.

# Cargo.toml
[dependencies]
filetime_creation = "0.1"

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in filetime_creation by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 35

cargo fmt