We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b10e3b commit b96d7f5Copy full SHA for b96d7f5
lib/grammar-utils.js
@@ -25,6 +25,14 @@ const GrammarUtils = {
25
return temp.path({ dir: this.tempFilesDir, prefix, suffix: extension })
26
},
27
28
+ // Public: Create a temporary directory
29
+ //
30
+ // Returns the {String} filepath of the new folder
31
+ createTempFolder(prefix = "") {
32
+ this.ensureTempDir()
33
+ return temp.mkdirSync({ dir: this.tempFilesDir, prefix })
34
+ },
35
+
36
// Public: Create a temporary file with the provided code
37
//
38
// * `code` A {String} containing some code
0 commit comments