Michael-F-Bryan / include_dir

The logical evolution of the include_str macro for embedding a directory tree into your binary.
https://michael-f-bryan.github.io/include_dir
MIT License
319 stars 36 forks source link

Feature request: restore metadata during extraction #97

Open jfly opened 3 weeks ago

jfly commented 3 weeks ago

I can't tell if this has already been discussed elsewhere.

In https://github.com/Michael-F-Bryan/include_dir/pull/63, it looks like we started capturing metadata, but AFAICT, we don't actually restore that metadata on extraction. I can't tell if this was intentional. It looks like this would be fairly straightforward to implement with rust's std::fs::File::set_times function.

I'd be happy to send in a PR implementing this if you're open to it.