File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,12 @@ impl MDBook {
118
118
119
119
if !self . dest . exists ( ) {
120
120
debug ! ( "[*]: {:?} does not exist, trying to create directory" , self . dest) ;
121
- try!( fs:: create_dir ( & self . dest ) ) ;
121
+ try!( fs:: create_dir_all ( & self . dest ) ) ;
122
122
}
123
123
124
124
if !self . src . exists ( ) {
125
125
debug ! ( "[*]: {:?} does not exist, trying to create directory" , self . src) ;
126
- try!( fs:: create_dir ( & self . src ) ) ;
126
+ try!( fs:: create_dir_all ( & self . src ) ) ;
127
127
}
128
128
129
129
let summary = self . src . join ( "SUMMARY.md" ) ;
@@ -132,7 +132,7 @@ impl MDBook {
132
132
133
133
// Summary does not exist, create it
134
134
135
- debug ! ( "[*]: {:?} does not exist, trying to create SUMMARY.md" , src. join( "SUMMARY.md" ) ) ;
135
+ debug ! ( "[*]: {:?} does not exist, trying to create SUMMARY.md" , self . src. join( "SUMMARY.md" ) ) ;
136
136
let mut f = try!( File :: create ( & self . src . join ( "SUMMARY.md" ) ) ) ;
137
137
138
138
debug ! ( "[*]: Writing to SUMMARY.md" ) ;
You can’t perform that action at this time.
0 commit comments