File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
tools/office-cmdlet-updater Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 39
39
"ignoreFiles" : [
40
40
" ..\\ ..\\ teams\\ teams-ps\\ teams\\ teams.md" ,
41
41
" ..\\ ..\\ whiteboard\\ whiteboard-ps\\ whiteboard\\ whiteboard.md"
42
- ]
42
+ ],
43
+ "tempFolderPath" : " .\\ .local\\ temp"
43
44
},
44
45
"sendgrid" : {
45
46
"sendMailNotification" : false ,
Original file line number Diff line number Diff line change @@ -87,9 +87,11 @@ class FsService {
87
87
88
88
// endregion
89
89
90
- getTempFolderPath ( { name, path } ) {
90
+ async getTempFolderPath ( { name } , path ) {
91
91
let tempFolders = this . logStoreService . getAllTempFolders ( ) ;
92
92
93
+ await fs . ensureDir ( path ) ;
94
+
93
95
if ( ! tempFolders . has ( name ) ) {
94
96
const tempFolderPath = `${ path } \\${ shortId ( ) } ` ;
95
97
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class MarkdownService {
49
49
async processQueue ( { file, doc } , cb ) {
50
50
let result , err ;
51
51
52
+ let { tempFolderPath } = this . config . get ( 'platyPS' ) ;
52
53
const {
53
54
copyMdInTempFolder,
54
55
getTempFolderPath,
@@ -57,7 +58,7 @@ class MarkdownService {
57
58
58
59
await this . _installDependenceIfNeeded ( doc ) ;
59
60
60
- const [ tempFolderPath ] = getTempFolderPath ( doc ) ;
61
+ [ tempFolderPath ] = await getTempFolderPath ( doc , tempFolderPath ) ;
61
62
62
63
const logFilePath = `${ tempFolderPath } \\${ shortId ( ) } .log` ;
63
64
You can’t perform that action at this time.
0 commit comments