Recursively clean session path

Fixes: https://github.com/sayanarijit/xplr/issues/293
This commit is contained in:
Arijit Basu 2021-07-05 11:37:34 +05:30 committed by Arijit Basu
parent 6babfeb3d6
commit b1ce57d68b

View File

@ -565,7 +565,7 @@ impl Runner {
term::disable_raw_mode()?;
terminal.show_cursor()?;
fs::remove_dir(session_path)?;
fs::remove_dir_all(session_path)?;
result
}