Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2463 from jackpoz/fixes/return-added-folder
Browse files Browse the repository at this point in the history
Pipe out the Folder created by Add-PnPFolder
  • Loading branch information
erwinvanhunen authored Feb 9, 2020
2 parents a761659 + 6531d94 commit 9e39e13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Commands/Files/AddFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ protected override void ExecuteCmdlet()
ClientContext.Load(folder, f => f.ServerRelativeUrl);
ClientContext.ExecuteQueryRetry();

folder.CreateFolder(Name);
var result = folder.CreateFolder(Name);

WriteObject(result);
}
}
}

0 comments on commit 9e39e13

Please sign in to comment.