From 145748e8d8e5b5fb2f19845de918efe493bb2882 Mon Sep 17 00:00:00 2001 From: Justin Rousseau Date: Mon, 8 Oct 2018 14:23:20 -0400 Subject: [PATCH] UploadLocalFiles.ps1 sample - fix variable used by -RootUri when creating the PSDrive --- Samples/UploadLocalFiles.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/UploadLocalFiles.ps1 b/Samples/UploadLocalFiles.ps1 index 29de646..4fa55d0 100644 --- a/Samples/UploadLocalFiles.ps1 +++ b/Samples/UploadLocalFiles.ps1 @@ -24,7 +24,7 @@ $ShareFileHomeFolder = (Send-SfRequest $sfClient -Entity Items).Url $LocalPath = (Join-Path $env:USERPROFILE "Documents") #Create a PowerShell provider for ShareFile at the location specified -New-PSDrive -Name sfDrive -PSProvider ShareFile -Client $sfClient -Root "\" -RootUri $ShareFilePath +New-PSDrive -Name sfDrive -PSProvider ShareFile -Client $sfClient -Root "\" -RootUri $ShareFileHomeFolder #upload all the files (recursively) in the local folder to the specified folder in ShareFile Copy-SfItem -Path $LocalPath -Destination "sfDrive:"