-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export-GSDriveFile : Exception calling "Create" #51
Comments
I just commented out this line |
@jtwaddle - Makes sense! Thanks for bringing this up! I'm on it! |
Awesome! I just started using PSGSuite and OMG... It rocks! Great job on this! |
@jtwaddle thank you so much!! I'm happy you like it! |
@jtwaddle - Going to close this out! Let me know if you still have any issues after testing! |
Works great! Thanks! |
When I try to use the Export-GSDriveFile, I am getting the following error.
Export-GSDriveFile : Exception calling "Create" with "1" argument(s): "Access to the path 'c:\temp' is denied."
I can create files within this folder. I tried passing in a different folder with the -OutFilePath argument and I still get the same response. I also tried to manually run this line which is where it is failing:
$stream = [System.IO.File]::Create($OutFilePath)
This line doesn't appear to work when passing in a directory. It appears to want a full file path, but that isn't what is being passed in when using the Export-GSDriveFile function and it complains if I try to pass in a file:
Export-GSDriveFile : Cannot validate argument on parameter 'OutFilePath'. The "(Get-Item $_).PSIsContainer" validation script for the
argument with value "C:\temp\test\cheese.csv" did not return a result of True. Determine why the validation script failed, and then try
the command again.
This is on Windows 10 1803
Any ideas?
The text was updated successfully, but these errors were encountered: