1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Extension traits.
//!
//! The items in this module add convenience methods to core PNA types from
//! `libpna` so they are easier to use in common situations such as:
//!
//! - Opening or creating archives directly from filesystem paths.
//! - Building entries from paths and applying metadata fluently.
//! - Converting between `std::fs::Metadata`/paths and `pna::Metadata`.
//! - Working with creation/modified/accessed times as `std::time::SystemTime`.
//!
//! These are provided as traits implemented for the corresponding types and are
//! re-exported through the crate's prelude. Most users should import the `prelude`
//! to make the extension methods available:
//!
//! ```
//! use pna::prelude::*;
//! ```
pub use *;
pub use *;
pub use *;
use ;
pub use *;
use fs;
pub use *;