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