aboutsummaryrefslogtreecommitdiff
path: root/src/library.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.rs')
-rw-r--r--src/library.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/library.rs b/src/library.rs
new file mode 100644
index 0000000..576ed77
--- /dev/null
+++ b/src/library.rs
@@ -0,0 +1,23 @@
+use anyhow::Ok;
+
+pub struct Library {
+ path: String,
+ tree: LibNode,
+}
+
+pub enum LibNode {
+ Directory(LibDirectory),
+ Item(LibItem),
+}
+
+pub struct LibDirectory {}
+pub struct LibItem {}
+
+impl Library {
+ pub fn open(path: &str) -> anyhow::Result<Self> {
+ Ok(Self {
+ path: path.to_string(),
+ tree: ,
+ })
+ }
+}