@@ -44,7 +44,7 @@ static AllFiles()
4444 {
4545 var category = GetCategory ( file ) ;
4646 var emptyFile = EmptyFile . Build ( file , category ) ;
47- var extension = Extensions . GetExtension ( file ) ;
47+ var extension = FileExtensions . GetExtension ( file ) ;
4848 var categoryFiles = FindDictionaryForCategory ( category ) ;
4949
5050 categoryFiles [ extension ] = emptyFile ;
@@ -92,7 +92,7 @@ static ConcurrentDictionary<string, EmptyFile> FindDictionaryForCategory(Categor
9292 public static void UseFile ( Category category , string file )
9393 {
9494 Guard . FileExists ( file , nameof ( file ) ) ;
95- var extension = Extensions . GetExtension ( file ) ;
95+ var extension = FileExtensions . GetExtension ( file ) ;
9696 var emptyFile = EmptyFile . Build ( file , category ) ;
9797 FindDictionaryForCategory ( category ) . AddOrUpdate ( extension , _ => emptyFile , ( _ , _ ) => emptyFile ) ;
9898 files . AddOrUpdate ( extension , _ => emptyFile , ( _ , _ ) => emptyFile ) ;
@@ -131,7 +131,7 @@ static Category GetCategory(string file)
131131 public static bool IsEmptyFile ( string path )
132132 {
133133 Guard . FileExists ( path , nameof ( path ) ) ;
134- var extension = Extensions . GetExtension ( path ) ;
134+ var extension = FileExtensions . GetExtension ( path ) ;
135135 if ( ! files . TryGetValue ( extension , out var emptyFile ) )
136136 {
137137 return false ;
@@ -145,9 +145,9 @@ public static bool IsEmptyFile(string path)
145145 public static void CreateFile ( string path , bool useEmptyStringForTextFiles = false )
146146 {
147147 TryCreateDirectory ( path ) ;
148- var extension = Extensions . GetExtension ( path ) ;
148+ var extension = FileExtensions . GetExtension ( path ) ;
149149 if ( useEmptyStringForTextFiles &&
150- Extensions . IsText ( extension ) )
150+ FileExtensions . IsText ( extension ) )
151151 {
152152 File . Delete ( path ) ;
153153 File . WriteAllBytes ( path , preamble ) ;
@@ -160,7 +160,7 @@ public static void CreateFile(string path, bool useEmptyStringForTextFiles = fal
160160 public static string GetPathFor ( string extension )
161161 {
162162 Guard . AgainstNullOrEmpty ( extension , nameof ( extension ) ) ;
163- extension = Extensions . GetExtension ( extension ) ;
163+ extension = FileExtensions . GetExtension ( extension ) ;
164164 if ( files . TryGetValue ( extension , out var emptyFile ) )
165165 {
166166 return emptyFile . Path ;
@@ -175,7 +175,7 @@ public static bool TryCreateFile(string path, bool useEmptyStringForTextFiles =
175175 var extension = Path . GetExtension ( path ) ;
176176
177177 if ( useEmptyStringForTextFiles &&
178- Extensions . IsText ( extension ) )
178+ FileExtensions . IsText ( extension ) )
179179 {
180180 TryCreateDirectory ( path ) ;
181181
@@ -211,7 +211,7 @@ static void TryCreateDirectory(string path)
211211
212212 public static bool TryGetPathFor ( string extension , [ NotNullWhen ( true ) ] out string ? path )
213213 {
214- extension = Extensions . GetExtension ( extension ) ;
214+ extension = FileExtensions . GetExtension ( extension ) ;
215215 if ( files . TryGetValue ( extension , out var emptyFile ) )
216216 {
217217 path = emptyFile . Path ;
0 commit comments