Enforce the creation of the full cache dir path

Fixes #576
This commit is contained in:
Fernando Mendes 2019-05-30 16:47:40 +01:00 committed by David Peter
parent dfa024f9e6
commit c9d7e3652b
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ impl HighlightingAssets {
pub fn save(&self, dir: Option<&Path>) -> Result<()> {
let target_dir = dir.unwrap_or_else(|| PROJECT_DIRS.cache_dir());
let _ = fs::create_dir(target_dir);
let _ = fs::create_dir_all(target_dir);
let theme_set_path = target_dir.join("themes.bin");
let syntax_set_path = target_dir.join("syntaxes.bin");