DirectoryRetrievalDepth Parameter (Connect-HDFS Cmdlet)
Limit the subfolders recursively scanned.
Connect-HDFS -DirectoryRetrievalDepth int
DirectoryRetrievalDepth specifies how many subfolders will be recursively scanned before stopping. -1 specifies that all subfolders are scanned. 0 specifies that only the current folder will be scanned for items.