Skip to content

Commit 858011a

Browse files
Use Path.Combine instead of building path as a string
1 parent af4da35 commit 858011a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityDataTool/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int HandleExtractArchive(FileInfo filename, DirectoryInfo outputFolder)
177177
foreach (var node in archive.Nodes)
178178
{
179179
Console.WriteLine($"Extracting {node.Path}...");
180-
CopyFile("/" + node.Path, $"{outputFolder}/{node.Path}");
180+
CopyFile("/" + node.Path, Path.Combine(outputFolder.FullName, node.Path));
181181
}
182182
}
183183
catch (NotSupportedException)

0 commit comments

Comments
 (0)