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

Latest commit

 

History

History
28 lines (19 loc) · 727 Bytes

File metadata and controls

28 lines (19 loc) · 727 Bytes

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.