Skip to content

Commit debad37

Browse files
Fix path separator
1 parent bdd4b6f commit debad37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MS2Create/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ private static void AddAndCreateFileToArchive(IMS2Archive archive, (string fullP
100100
}
101101

102102
private static (string FullPath, string RelativePath)[] GetFilesRelative(string path) {
103-
if (!path.EndsWith('\\')) {
104-
path += '\\';
103+
if (!path.EndsWith(Path.DirectorySeparatorChar)) {
104+
path += Path.DirectorySeparatorChar;
105105
}
106106

107107
string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);

0 commit comments

Comments
 (0)