AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Dowload citrio11/5/2023 ![]() # Get details of each folder and copy one folder a time to inbox. Send-SfRequest -Client $sfClient -Entity Items -Navigation Children Set-Location $ShareFileHomeFolder/Managers New-PSDrive -Name sf -PSProvider ShareFile -Root / -Client $sfClient #Create a PowerShell provider for ShareFile at the location specified If (Get-PSDrive sf -ErrorAction Silentlåontinue) $ShareFileHomeFolder = "sf:/" + (Send-SfRequest $sfClient -Entity Items).Name #get the current user's home folder to use as the starting point #ShareFile directory is relative to the root of the account $sfClient = Get-SfClient -Name $ShareFile_Subdomain So, maybe there are other forces at work? It might be good to work with the ShareFile admin to see if there is anything going on behind the scenes. The local one was always very sketchy as far as uploads and downloads (the rest of the scripts upload the files to ShareFile once they're processed and there are times when there is no indication that an upload was even attempted let alone successful when copying to the local sharefile). One is within our local network and another was in some cloud. One other thing we noticed here is that we have two different places where the Sharefile directories can be. Have you tried the script using the account with elevated privilege? Do you have access to the ShareFile logs? Not sure what to suggest without being there. ![]() There are times when it takes a few runs of the script to download successfully. So it still fails occasionally but when that happens I choose not to delete. I wrote the code so that I could control whether or not to delete the source. So it would download some and only create a 0 byte file for others and then delete the source. My issue was I was doing the mass download and delete. The difference was that I was able to tell when a file didn't download. I also still had the same problem with my code.
0 Comments
Read More
Leave a Reply. |