File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ export class AppComponent implements OnInit {
7171 // Prevent Dev Tool to show on production mode
7272 this . app . blockDevToolInProductionMode ( ) ;
7373
74+ // Create folders if missing
75+ this . updaterService . createFoldersIfMissing ( ) ;
76+
7477 // Before retrieving an actual copy of the workspace we
7578 // check and in case apply, our retro compatibility service
7679 if ( this . retrocompatibilityService . isRetroPatchNecessary ( ) ) {
Original file line number Diff line number Diff line change @@ -112,4 +112,15 @@ export class UpdaterService {
112112 isReady ( ) {
113113 return ( this . version !== undefined ) ;
114114 }
115+
116+ createFoldersIfMissing ( ) {
117+ try {
118+ if ( ! this . electronService . fs . existsSync ( this . electronService . os . homedir ( ) + '/.Leapp/' ) ) {
119+ this . electronService . fs . mkdirSync ( this . electronService . os . homedir ( ) + '/.Leapp/' ) ;
120+ }
121+ if ( ! this . electronService . fs . existsSync ( this . electronService . os . homedir ( ) + '/.aws/' ) ) {
122+ this . electronService . fs . mkdirSync ( this . electronService . os . homedir ( ) + '/.aws/' ) ;
123+ }
124+ } catch ( _ ) { }
125+ }
115126}
You can’t perform that action at this time.
0 commit comments