on master help sign in
Enforce the creation of the full cache dir path

Fixes #576

commitc9d7e3652bb0be4becdecfd8d2e7d4e795071c83 authorFernando Mendes <fernando@mendes.codes> dateThu 30 May 2019, 16:47 (7 years ago) parentdfa024f
1 file changed+1−1
src/assets.rs+1−1
src/assets.rs+1−1
@@ -117,7 +117,7 @@ impl HighlightingAssets {
117117
118118 pub fn save(&self, dir: Option<&Path>) -> Result<()> {
119119 let target_dir = dir.unwrap_or_else(|| PROJECT_DIRS.cache_dir());
120− let _ = fs::create_dir(target_dir);
120+ let _ = fs::create_dir_all(target_dir);
121121 let theme_set_path = target_dir.join("themes.bin");
122122 let syntax_set_path = target_dir.join("syntaxes.bin");
123123