Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IFileIO.cs 529B

1234567891011121314151617
  1. using System.IO;
  2. namespace Packages.Rider.Editor.ProjectGeneration
  3. {
  4. internal interface IFileIO
  5. {
  6. bool Exists(string path);
  7. TextReader GetReader(string path);
  8. string ReadAllText(string path);
  9. void WriteAllText(string path, string content);
  10. // rootDirectoryFullPath is assumed to be the result of Path.GetFullPath
  11. // Passing the directory with a trailing slash (Path.DirectorySeparatorChar) will avoid an allocation
  12. string EscapedRelativePathFor(string path, string rootDirectoryFullPath);
  13. }
  14. }