Skip to content

Commit 58da4da

Browse files
committed
Bug fix - removed the check for IsFilePath
IsFilePath() method throws exception if the path doesn't exists.
1 parent 19ba25f commit 58da4da

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

SourceCodeReader.Web/Infrastructure/HelperExtensions.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ public static class HelperExtensions
1111
public static void EnsureDirectoryExists(this string path)
1212
{
1313
var directoryPath = path;
14-
if (path.IsFilePath())
15-
{
16-
directoryPath = Path.GetDirectoryName(path);
17-
}
18-
14+
1915
if (!Directory.Exists(directoryPath))
2016
{
2117
Directory.CreateDirectory(directoryPath);

0 commit comments

Comments
 (0)