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