Commit 786477d 1 parent ea22fe9 commit 786477d Copy full SHA for 786477d
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,21 @@ impl Directories {
88
88
89
89
/// Create a fake Directories struct for testing ONLY
90
90
pub fn fake_folders ( path : & Path ) -> Directories {
91
+ // Prepare the directories
92
+ fs:: create_dir_all ( & path) . unwrap ( ) ;
93
+
91
94
let terminal_settings_json = path. join ( "terminal_settings.json" ) ;
92
95
if !terminal_settings_json. exists ( ) {
93
96
// This is for testing only, so we can ignore the result
94
- std :: fs:: write ( & terminal_settings_json, "{}" ) . unwrap ( ) ;
97
+ fs:: write ( & terminal_settings_json, "{}" ) . unwrap ( ) ;
95
98
}
99
+
96
100
let start_menu = path. join ( "Start Menu" ) ;
97
101
fs:: create_dir_all ( & start_menu) . unwrap ( ) ;
102
+
98
103
let quick_launch = Some ( path. join ( "Quick Launch" ) ) ;
99
104
fs:: create_dir_all ( quick_launch. as_ref ( ) . unwrap ( ) ) . unwrap ( ) ;
105
+
100
106
let desktop = path. join ( "Desktop" ) ;
101
107
fs:: create_dir_all ( & desktop) . unwrap ( ) ;
102
108
You can’t perform that action at this time.
0 commit comments