Closed lefoimpeur closed 5 years ago
Thanks for letting me know, @lefoimpeur ! Couple questions so I can dig in a little better:
Start-GSDriveFileUpload -Path $Export_File -Parents $Destination_Folder_ID -Wait
Thank you for the additional details, @lefoimpeur !! Should have a fix for you by tomorrow night once I have some time =]
Hi @scrthq, Did you have time to work on the fix ?
hey @lefoimpeur - I have the fix for this sorted =], just working on getting a couple other pending fixes/features included that have been delaying this overall. Should hopefully have a new version published tonight with this fix, I'll definitely let you know though!
For reference, the issue is that PS4 doesn't handle adding the enum values for [System.IO.FileShare]
. You can replicate the error with the following line, fixed line right after for comparison (validated fix in my PS2.0 VM):
# Current code (works fine in PS5+)
[System.IO.FileShare]::Delete + [System.IO.FileShare]::ReadWrite
# Updating to the following (works in PS2.0+)
[System.IO.FileShare]"Delete, ReadWrite"
Hey @lefoimpeur - v2.26.2 is out now with this fix. Please try it out and let me know if you're still having any issues! Thanks for your patience!
Hi @scrthq , really good, It works ! Thank you
I have another similar issue with "Start-GSDriveFileUpload" :
Start-GSDriveFileUpload : Method invocation failed because [System.IO.FileShare] does not contain a method named 'op_Addition'