2 writes to _root
Microsoft.TemplateEngine.Utils (2)
InMemoryFileSystem.cs (2)
22
_root
= new FileSystemDirectory(Path.GetFileName(root.TrimEnd('/', '\\')), root);
26
_root
= new FileSystemDirectory(Path.GetFileName(newRoot.TrimEnd('/', '\\')), newRoot);
30 references to _root
Microsoft.TemplateEngine.Utils (30)
InMemoryFileSystem.cs (30)
39
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
47
FileSystemDirectory currentDir =
_root
;
69
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
71
FileSystemDirectory currentDir =
_root
;
104
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
112
FileSystemDirectory currentDir =
_root
;
142
string rel = directory.Substring(
_root
.FullPath.Length).Trim('/', '\\');
150
FileSystemDirectory currentDir =
_root
;
179
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
180
FileSystemDirectory currentDir =
_root
;
259
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
260
FileSystemDirectory currentDir =
_root
;
341
string rel = directoryName.Substring(
_root
.FullPath.Length).Trim('/', '\\');
342
FileSystemDirectory currentDir =
_root
;
443
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
445
FileSystemDirectory currentDir =
_root
;
469
string rel = file.Substring(
_root
.FullPath.Length).Trim('/', '\\');
471
FileSystemDirectory currentDir =
_root
;
499
string rel = path.Substring(
_root
.FullPath.Length).Trim('/', '\\');
501
FileSystemDirectory currentDir =
_root
;
557
string rel = file.Substring(
_root
.FullPath.Length).Trim('/', '\\');
559
FileSystemDirectory currentDir =
_root
;
589
string rel = file.Substring(
_root
.FullPath.Length).Trim('/', '\\');
591
FileSystemDirectory currentDir =
_root
;
620
string rel = file.Substring(
_root
.FullPath.Length).Trim('/', '\\');
622
FileSystemDirectory currentDir =
_root
;
651
string rel = file.Substring(
_root
.FullPath.Length).Trim('/', '\\');
653
FileSystemDirectory currentDir =
_root
;
743
if (processedPath.Equals(
_root
.FullPath) || processedPath.StartsWith(
_root
.FullPath.TrimEnd('/', '\\') + Path.DirectorySeparatorChar))