Beispiel #1
0
 public void WriteAllText(RelativeFilePath path, string text)
 {
     File.WriteAllText(GetFullyQualifiedPath(path).FullName, text);
 }
Beispiel #2
0
 public bool FileExists(RelativeFilePath filePath)
 {
     return(GetFullyQualifiedPath(filePath).Exists);
 }
Beispiel #3
0
 public string ReadAllText(RelativeFilePath filePath)
 {
     return(File.ReadAllText(GetFullyQualifiedPath(filePath).FullName));
 }
Beispiel #4
0
 public static FileInfo GetFullyQualifiedFilePath(this IDirectoryAccessor directoryAccessor, RelativeFilePath relativePath) =>
 (FileInfo)directoryAccessor.GetFullyQualifiedPath(relativePath);