NuGet.SharedPackageRepository.CreateRepository C# (CSharp) Method

CreateRepository() protected method

protected CreateRepository ( string path ) : IPackageRepository
path string
return IPackageRepository
        protected virtual IPackageRepository CreateRepository(string path)
        {
            string root = PathUtility.EnsureTrailingSlash(FileSystem.Root);
            string absolutePath = PathUtility.GetAbsolutePath(root, path);
            string directory = Path.GetDirectoryName(absolutePath);
            return new PackageReferenceRepository(new PhysicalFileSystem(directory), this);
        }