File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments