minthemiddle / Quick-Capture

A quick capture app for adding thoughts to a daily markdown note.
MIT License
4 stars 0 forks source link

Standalone mode must also create intermediate folders #32

Open minthemiddle opened 2 hours ago

minthemiddle commented 2 hours ago

If path more than existing for standalone, intermediate folders must be created.

minthemiddle commented 2 hours ago

It probably also fails to create x intermediate folders for daily mode

Relevant code:

let path = PathBuf::from(file_name);

 if let Some(parent) = path.parent() {
     create_dir_all(parent).expect("Failed to create directories");
 }