@@ -5,7 +5,7 @@ var path_1 = require('path');
55function writeFileFromContent ( _a ) {
66 var to = _a . to , content = _a . content , dir = _a . dir ;
77 var toAbs = path_1 . join ( dir , to ) ;
8- createFolders ( { dir : dir , to : to } ) . then ( function ( ) {
8+ createFolder ( { dir : dir , to : to } ) . then ( function ( ) {
99 fs_1 . writeFile ( toAbs , content , function ( writeErr ) {
1010 if ( writeErr ) {
1111 console . log ( "Error: tried but failed to write to " + toAbs + " with: " + content , writeErr ) ;
@@ -19,7 +19,7 @@ function writeFileFromFile(_a) {
1919 var to = _a . to , from = _a . from , dir = _a . dir , tutorialDir = _a . tutorialDir ;
2020 var toAbs = path_1 . join ( dir , to ) ;
2121 var fromAbs = path_1 . join ( tutorialDir , from ) ;
22- createFolders ( { dir : dir , to : to } ) . then ( function ( ) {
22+ createFolder ( { dir : dir , to : to } ) . then ( function ( ) {
2323 fs_1 . readFile ( fromAbs , 'utf8' , function ( readErr , data ) {
2424 var err = "Error: tried to write '" + fromAbs + "' to '" + toAbs + "' but failed." ;
2525 if ( readErr ) {
@@ -35,7 +35,7 @@ function writeFileFromFile(_a) {
3535 } ) ;
3636}
3737exports . writeFileFromFile = writeFileFromFile ;
38- function createFolders ( _a ) {
38+ function createFolder ( _a ) {
3939 var dir = _a . dir , to = _a . to ;
4040 return new Promise ( function ( resolve , reject ) {
4141 var folders = to . split ( '/' ) . slice ( 0 , - 1 ) ;
0 commit comments