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