File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ struct GeneratorConfigBuilder {
3939
4040 func write( ) throws {
4141 let fileURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
42- . appending ( path : " Sources " )
43- . appending ( path : tagString)
44- . appending ( path : " openapi-generator-config.yml " )
42+ . appendingPathComponent ( " Sources " )
43+ . appendingPathComponent ( tagString)
44+ . appendingPathComponent ( " openapi-generator-config.yml " )
4545 let fileContent = getTemplate ( )
4646 guard let data = fileContent. data ( using: . utf8) else {
4747 throw ErrorMessage ( message: " Variable data not found. " )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ struct SourcesBuilder {
4747
4848 init ( ) throws {
4949 let directoryURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
50- . appending ( path : " Sources " )
50+ . appendingPathComponent ( " Sources " )
5151 let resourceKeys = Set < URLResourceKey > ( [ . nameKey, . isDirectoryKey] )
5252
5353 guard let directoryEnumerator = FileManager . default. enumerator (
@@ -163,7 +163,7 @@ struct PackageBuilder {
163163 }
164164 func write( ) throws {
165165 let fileURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
166- . appending ( path : version. fileName)
166+ . appendingPathComponent ( version. fileName)
167167 let fileContent = try getTemplate ( )
168168 guard let data = fileContent. data ( using: . utf8) else {
169169 throw ErrorMessage ( message: " Variable data not found. " )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ struct SourcesBuilder {
4747
4848 init ( ) throws {
4949 let directoryURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
50- . appending ( path : " Sources " )
50+ . appendingPathComponent ( " Sources " )
5151 let resourceKeys = Set < URLResourceKey > ( [ . nameKey, . isDirectoryKey] )
5252
5353 guard let directoryEnumerator = FileManager . default. enumerator (
@@ -92,7 +92,7 @@ struct SPIManifestBuilder {
9292
9393 func write( ) throws {
9494 let fileURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
95- . appending ( path : " .spi.yml " )
95+ . appendingPathComponent ( " .spi.yml " )
9696 let fileContent = try getTemplate ( )
9797 guard let data = fileContent. data ( using: . utf8) else {
9898 throw ErrorMessage ( message: " Variable data not found. " )
You can’t perform that action at this time.
0 commit comments