diff --git a/ExportViewer.Core/Services/HtmlParsingService.cs b/ExportViewer.Core/Services/HtmlParsingService.cs index f9fae99..74d0e38 100644 --- a/ExportViewer.Core/Services/HtmlParsingService.cs +++ b/ExportViewer.Core/Services/HtmlParsingService.cs @@ -43,7 +43,7 @@ public async Task> GetMessages (string filePath , CultureIn DateTime date = Convert.ToDateTime(divDate , locale); - if (File.Exists(exportLocation + href)) + if (File.Exists(Path.Combine(exportLocation, href))) { messages.Add(new Message { Link = href , Date = date }); } @@ -81,7 +81,7 @@ public async Task> GetMessages (string filePath , CultureIn DateTime parsedDate = DateTime.ParseExact(divDate.TextContent , "MMM dd, yyyy h:mm:sstt" , locale); - if (File.Exists(exportLocation + href)) + if (File.Exists(Path.Combine(exportLocation, href))) { messages.Add(new Message { Link = href , Date = parsedDate }); } @@ -133,7 +133,7 @@ public async Task> GetMessages (string filePath , CultureIn DateTime parsedDate = DateTime.ParseExact(divDate.TextContent , "MMM dd, yyyy h:mm:sstt" , locale); - if (File.Exists(exportLocation + href)) + if (File.Exists(Path.Combine(exportLocation, href))) { messages.Add(new Message { Link = href , Date = parsedDate }); } @@ -163,7 +163,7 @@ public async Task> GetMessages (string filePath , CultureIn DateTime parsedDate = DateTime.ParseExact(divDate.TextContent , "MMM dd, yyyy h:mm:sstt" , locale); - if (File.Exists(exportLocation + href)) + if (File.Exists(Path.Combine(exportLocation, href))) { messages.Add(new Message { Link = href , Date = parsedDate }); }