on master help sign in
Add a TODO
de946d2Wojciech Kępka
helix-view/src/document.rs+1
@@ -198,6 +198,7 @@ impl Document {
198 async move {
198 async move {
199 use tokio::{fs::File, io::AsyncWriteExt};
199 use tokio::{fs::File, io::AsyncWriteExt};
200 if let Some(parent) = path.parent() {
200 if let Some(parent) = path.parent() {
201+ // TODO: display a prompt asking the user if the directories should be created
201 if !parent.exists() {
202 if !parent.exists() {
202 return Err(Error::msg(
203 return Err(Error::msg(
203 "can't save file, parent directory does not exist",
204 "can't save file, parent directory does not exist",