aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/structs.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.rs b/src/structs.rs
index 5fdca3b..7282996 100644
--- a/src/structs.rs
+++ b/src/structs.rs
@@ -53,6 +53,7 @@ impl State {
pub fn save(&self) -> Result<(), io::Error> {
let mut path = get_podcast_dir();
+ DirBuilder::new().recursive(true).create(&path).unwrap();
path.push(".subscriptions");
let serialized = serde_json::to_string(self)?;
let mut file = File::create(&path)?;