The following command in FileSystem/README.md throws the error:
PS> new-psdrive -name FS -psprovider SHiPS -root FileSystem#C
New-PSDrive : Cannot create an instance of type 'C' in the module 'C:\Users\matt9ucci\SHiPS\samples\FileSystem\FileSystem.psm1'.
Make sure type 'C' exists, inherits from Microsoft.PowerShell.SHiPS.SHiPSDirectory, and Name is set in constructors.
As a root, a constructor 'C([string]$name)' is required.
Fix the script and try again.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-PSDrive], InvalidOperationException
+ FullyQualifiedErrorId : CannotCreateInstance,Microsoft.PowerShell.Commands.NewPSDriveCommand
The C should be replaced with Home that exists in FileSystem.psm1.
The following command in FileSystem/README.md throws the error:
The
C
should be replaced withHome
that exists in FileSystem.psm1.