MCPcopy Index your code
hub / github.com/alexcrichton/filetime

github.com/alexcrichton/filetime @0.2.29

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2.29 ↗ · + Follow
66 symbols 165 edges 10 files 15 documented · 23%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

filetime

Documentation

Note: this library is quite old and superseded by functionality in the standard library. Nowadays you shouldn't use this crate and you should use [FileTimes] and [File::set_times] instead.

A helper library for inspecting and setting the various timestamps of files in Rust. This library takes into account cross-platform differences in terms of where the timestamps are located, what they are called, and how to convert them into a platform-independent representation.

# Cargo.toml
[dependencies]
filetime = "0.2"

Advantages over using std::fs::Metadata

This library, when built with RUSTFLAGS=--cfg emulate_second_only_system set, will return all times rounded down to the second. This emulates the behavior of some file systems, mostly HFS, allowing debugging on other hardware.

License

This project is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

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

Core symbols most depended-on inside this repo

from_last_modification_time
called by 36
src/wasm.rs
from_last_access_time
called by 15
src/wasm.rs
set_file_times
called by 13
src/lib.rs
set_symlink_file_times
called by 8
src/lib.rs
to_timespec
called by 8
src/unix/mod.rs
nanoseconds
called by 6
src/lib.rs
emulate_second_only_system
called by 5
src/lib.rs
set_file_handle_times
called by 4
src/lib.rs

Shape

Function 52
Method 13
Class 1

Languages

Rust100%

Modules by API surface

src/lib.rs30 symbols
src/windows.rs6 symbols
src/wasm.rs5 symbols
src/unix/utimes.rs5 symbols
src/unix/mod.rs5 symbols
src/redox.rs5 symbols
src/unix/macos.rs4 symbols
src/unix/utimensat.rs2 symbols
src/unix/linux.rs2 symbols
src/unix/android.rs2 symbols

For agents

$ claude mcp add filetime \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact