Skip to content

Commit 72506b0

Browse files
committed
Update FileEx.cs
1 parent 2738f59 commit 72506b0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/MarkdownSnippets/FileEx.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ public static string FixFileCapitalization(string file)
88
return filePaths[0];
99
}
1010

11-
public static FileStream OpenRead(string path) =>
12-
new(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
13-
1411
public static string GetRelativePath(string file, string directory)
1512
{
1613
var fileUri = new Uri(file);
@@ -34,20 +31,6 @@ public static string PrependSlash(string path)
3431
return $"/{path}";
3532
}
3633

37-
public static IEnumerable<string> FindFiles(string directory, string pattern)
38-
{
39-
var files = new List<string>();
40-
try
41-
{
42-
files.AddRange(Directory.EnumerateFiles(directory, pattern));
43-
}
44-
catch (UnauthorizedAccessException)
45-
{
46-
}
47-
48-
return files;
49-
}
50-
5134
public static void ClearReadOnly(string path)
5235
{
5336
if (!File.Exists(path))

0 commit comments

Comments
 (0)