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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//! # Pathio
//!
//! <div align="left">
//! <a href="https://crates.io/crates/pathio"><img src="https://img.shields.io/crates/v/pathio?label=version"></a>
//! <a href="./LICENSE-MIT"><img src="https://img.shields.io/badge/License-Apache/MIT-white.svg?label=license"></a>
//! <a href="https://deps.rs/crate/pathio"><img src="https://img.shields.io/badge/check-white.svg?label=deps"></a>
//! <a href="https://docs.rs/pathio"><img src="https://img.shields.io/docsrs/pathio/latest"></a>
//! </div>
//!
//! #
//!
//! Crate adding *`PathTree`*, a special type immitating **UNIX** file system for storing any generic type `<T>`.
//!
//! ## === Description ===
//!
//! It is created by daisy chaining *HashMaps*. It splits data into directories, which can store `<T>` or nest subdirectories.
//!
//! ```rust
//! use pathio::prelude::*;
//!
//! let mut tree: PathTree<String> = PathTree::new("FileSystem");
//!
//! tree.create_directory("New_Folder").unwrap();
//! tree.create_directory("New_Folder/Strings").unwrap();
//! tree.create_directory("Cool_Folder").unwrap();
//!
//! tree.insert_file("New_Folder/Strings/text.txt", "Hello World!".to_string()).unwrap();
//!
//! println!("{}", tree.list());
//!
//! ```
//!
//! Console output:
//!
//! ```
//! > FileSystem
//! |-> Cool_Folder
//! |-> New_Folder
//! | |-> Strings
//! | | |-> text.txt
//! ```
//!
//! ## === Contributing ===
//!
//! Any contribution submitted by you will be dual licensed as mentioned below, without any additional terms or conditions.
//!
//! ## === Licensing ===
//!
//! Released under both [APACHE](./LICENSE-APACHE) and [MIT](./LICENSE-MIT) licenses, for the sake of compatibility with other projects. Pick one that suits you the most!
pub use *;