diff --git a/FileMatchFinder/Classes/TorrentReader.cs b/FileMatchFinder/Classes/TorrentReader.cs index a23a6fe..be67101 100644 --- a/FileMatchFinder/Classes/TorrentReader.cs +++ b/FileMatchFinder/Classes/TorrentReader.cs @@ -34,7 +34,7 @@ public static Torrent ReadTorrent(string filename) string fullPath = name; foreach (BString partOfPath in filePaths) { - fullPath += Path.PathSeparator + partOfPath.Value; + fullPath += Path.DirectorySeparatorChar + partOfPath.Value; } files.Add(new LostFile(fullPath, length, begin)); diff --git a/FileMatchFinder/Classes/TreeWalker.cs b/FileMatchFinder/Classes/TreeWalker.cs index f5a7d7b..2bbb52d 100644 --- a/FileMatchFinder/Classes/TreeWalker.cs +++ b/FileMatchFinder/Classes/TreeWalker.cs @@ -26,7 +26,7 @@ public static void FindFiles(Torrent torrent, List files, string desti // Все проверки пройдены. перед нами искомый файл // Перемещаем его - FileInfo fileToMove = new FileInfo(destinationPath + Path.PathSeparator + fileInTorrent.Name); + FileInfo fileToMove = new FileInfo(destinationPath + Path.DirectorySeparatorChar + fileInTorrent.Name); if (!Directory.Exists(fileToMove.DirectoryName)) Directory.CreateDirectory(fileToMove.DirectoryName);