File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/Files.App/Services/Windows Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) 2024 Files Community
22// Licensed under the MIT License. See the LICENSE.
33
4- using System . IO ;
5-
64namespace Files . App . Services
75{
86 /// <inheritdoc cref="IWindowsIniService"/>
@@ -11,18 +9,18 @@ public sealed class WindowsIniService : IWindowsIniService
119 /// <inheritdoc/>
1210 public List < IniSectionDataItem > GetData ( string filePath )
1311 {
14- if ( ! File . Exists ( filePath ) )
12+ if ( ! SystemIO . File . Exists ( filePath ) )
1513 return [ ] ;
1614
1715 var lines = Enumerable . Empty < string > ( ) . ToList ( ) ;
1816
1917 try
2018 {
21- lines = File . ReadLines ( filePath )
19+ lines = SystemIO . File . ReadLines ( filePath )
2220 . Where ( line => ! line . StartsWith ( ';' ) && ! string . IsNullOrEmpty ( line ) )
2321 . ToList ( ) ;
2422 }
25- catch ( Exception ex ) when ( ex is UnauthorizedAccessException || ex is FileNotFoundException )
23+ catch ( Exception ex ) when ( ex is UnauthorizedAccessException || ex is SystemIO . FileNotFoundException )
2624 {
2725 return [ ] ;
2826 }
You can’t perform that action at this time.
0 commit comments