Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Sample Provider - Modeling Windows File System

Step 1- Install SHiPS

Follow the instructions in here to download and install the SHiPS.

Step 2 - Review the sample code

See the FileSystem module.

Step 3 - Try it out

Import-Module  SHiPS
Import-Module .\samples\FileSystem
New-PSDrive -Name FS -PSProvider SHiPS -Root FileSystem#Home
cd FS:
dir

Key takeaways from this example

  • Unlike the FamilyTree, a tree structure, the FileSystem follows a recursion model from root to leaf.
  • We used a data field, Hidden [object]$data to pass down the context from parent node to child.