@@ -84,20 +84,20 @@ public virtual void WriteMappingFile(string path, string text)
84
84
public virtual byte [ ] ReadResponseBodyAsFile ( string path )
85
85
{
86
86
Guard . NotNullOrEmpty ( path ) ;
87
- path = PathUtils . CleanPath ( path ) ! ;
87
+ path = FilePathUtils . CleanPath ( path ) ! ;
88
88
// If the file exists at the given path relative to the MappingsFolder, then return that.
89
89
// Else the path will just be as-is.
90
- return File . ReadAllBytes ( File . Exists ( PathUtils . Combine ( GetMappingFolder ( ) , path ) ) ? PathUtils . Combine ( GetMappingFolder ( ) , path ) : path ) ;
90
+ return File . ReadAllBytes ( File . Exists ( FilePathUtils . Combine ( GetMappingFolder ( ) , path ) ) ? FilePathUtils . Combine ( GetMappingFolder ( ) , path ) : path ) ;
91
91
}
92
92
93
93
/// <inheritdoc cref="IFileSystemHandler.ReadResponseBodyAsString"/>
94
94
public virtual string ReadResponseBodyAsString ( string path )
95
95
{
96
96
Guard . NotNullOrEmpty ( path ) ;
97
- path = PathUtils . CleanPath ( path ) ! ;
97
+ path = FilePathUtils . CleanPath ( path ) ! ;
98
98
// In case the path is a filename, the path will be adjusted to the MappingFolder.
99
99
// Else the path will just be as-is.
100
- return File . ReadAllText ( File . Exists ( PathUtils . Combine ( GetMappingFolder ( ) , path ) ) ? PathUtils . Combine ( GetMappingFolder ( ) , path ) : path ) ;
100
+ return File . ReadAllText ( File . Exists ( FilePathUtils . Combine ( GetMappingFolder ( ) , path ) ) ? FilePathUtils . Combine ( GetMappingFolder ( ) , path ) : path ) ;
101
101
}
102
102
103
103
/// <inheritdoc cref="IFileSystemHandler.FileExists"/>
@@ -124,7 +124,7 @@ public virtual void WriteFile(string folder, string filename, byte[] bytes)
124
124
Guard . NotNullOrEmpty ( filename ) ;
125
125
Guard . NotNull ( bytes ) ;
126
126
127
- File . WriteAllBytes ( PathUtils . Combine ( folder , filename ) , bytes ) ;
127
+ File . WriteAllBytes ( FilePathUtils . Combine ( folder , filename ) , bytes ) ;
128
128
}
129
129
130
130
/// <inheritdoc cref="IFileSystemHandler.DeleteFile"/>
0 commit comments