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 {
39
39
40
40
func write( ) throws {
41
41
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 " )
45
45
let fileContent = getTemplate ( )
46
46
guard let data = fileContent. data ( using: . utf8) else {
47
47
throw ErrorMessage ( message: " Variable data not found. " )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ struct SourcesBuilder {
47
47
48
48
init ( ) throws {
49
49
let directoryURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
50
- . appending ( path : " Sources " )
50
+ . appendingPathComponent ( " Sources " )
51
51
let resourceKeys = Set < URLResourceKey > ( [ . nameKey, . isDirectoryKey] )
52
52
53
53
guard let directoryEnumerator = FileManager . default. enumerator (
@@ -163,7 +163,7 @@ struct PackageBuilder {
163
163
}
164
164
func write( ) throws {
165
165
let fileURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
166
- . appending ( path : version. fileName)
166
+ . appendingPathComponent ( version. fileName)
167
167
let fileContent = try getTemplate ( )
168
168
guard let data = fileContent. data ( using: . utf8) else {
169
169
throw ErrorMessage ( message: " Variable data not found. " )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ struct SourcesBuilder {
47
47
48
48
init ( ) throws {
49
49
let directoryURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
50
- . appending ( path : " Sources " )
50
+ . appendingPathComponent ( " Sources " )
51
51
let resourceKeys = Set < URLResourceKey > ( [ . nameKey, . isDirectoryKey] )
52
52
53
53
guard let directoryEnumerator = FileManager . default. enumerator (
@@ -92,7 +92,7 @@ struct SPIManifestBuilder {
92
92
93
93
func write( ) throws {
94
94
let fileURL = URL ( fileURLWithPath: FileManager . default. currentDirectoryPath)
95
- . appending ( path : " .spi.yml " )
95
+ . appendingPathComponent ( " .spi.yml " )
96
96
let fileContent = try getTemplate ( )
97
97
guard let data = fileContent. data ( using: . utf8) else {
98
98
throw ErrorMessage ( message: " Variable data not found. " )
You can’t perform that action at this time.
0 commit comments