on master help sign in
Add a TODO
commitde946d2357e2cd4b64acbfc7bb45e3ead3785b83 authorWojciech Kępka <wojtek.kepka@protonmail.com> dateSun 6 Jun 2021, 07:31 (5 years ago) parent14f511d
1 file changed+1
helix-view/src/document.rs+1
helix-view/src/document.rs+1
@@ -198,6 +198,7 @@ impl Document {
198198 async move {
199199 use tokio::{fs::File, io::AsyncWriteExt};
200200 if let Some(parent) = path.parent() {
201+ // TODO: display a prompt asking the user if the directories should be created
201202 if !parent.exists() {
202203 return Err(Error::msg(
203204 "can't save file, parent directory does not exist",