1 write to _path
NuGet.Commands (1)
RestoreCommand\ContentFiles\SingleFileProvider.cs (1)
24
_path
= path;
6 references to _path
NuGet.Commands (6)
RestoreCommand\ContentFiles\SingleFileProvider.cs (6)
47
if (
_path
.AsSpan().StartsWith(span, StringComparison.OrdinalIgnoreCase))
49
if (span.Length ==
_path
.Length)
55
if (span.Length == 0 ||
_path
[span.Length] == '/')
58
int slashIndex =
_path
.IndexOf('/', span.Length + 1);
63
return new SingleDirectoryContents(new VirtualFileInfo(
_path
, isDirectory: false));
68
var path =
_path
.Substring(0, slashIndex);