File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,7 @@ public override bool Execute()
94
94
95
95
CheckDestinationPath ( destinationPath , fullDestDirPath ) ;
96
96
97
- if ( ! Directory . Exists ( Path . Combine ( DestinationDirectory , Path . GetDirectoryName ( entry . FullName ) ) ) )
98
- {
99
- Directory . CreateDirectory ( Path . Combine ( DestinationDirectory , Path . GetDirectoryName ( entry . FullName ) ) ) ;
100
- }
97
+ Directory . CreateDirectory ( Path . GetDirectoryName ( destinationPath ) ) ;
101
98
102
99
Log . LogMessage ( Path . GetDirectoryName ( entry . FullName ) ) ;
103
100
entry . ExtractToFile ( destinationPath ) ;
@@ -131,10 +128,9 @@ public override bool Execute()
131
128
string destinationPath = Path . GetFullPath ( Path . Combine ( DestinationDirectory , entryName ) ) ;
132
129
133
130
CheckDestinationPath ( destinationPath , fullDestDirPath ) ;
131
+ Directory . CreateDirectory ( Path . GetDirectoryName ( destinationPath ) ) ;
134
132
135
133
Log . LogMessage ( entryName ) ;
136
-
137
- Directory . CreateDirectory ( Path . GetDirectoryName ( destinationPath ) ) ;
138
134
tarEntry . ExtractToFile ( destinationPath , overwrite : true ) ;
139
135
}
140
136
}
You can’t perform that action at this time.
0 commit comments