abujehad139 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

ServiceGenerator should open readonly files #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Run the service generator with "url some-read-only-file".
The file will not be open and the generator will crush.

A fix to that problem is adding FileAccess.Read to the File.Open command, as 
following:

new StreamDiscoveryDevice
                    {
                        DiscoveryStream = File.Open(url.LocalPath, FileMode.Open, FileAccess.Read)
                    }

Original issue reported on code.google.com by pele...@google.com on 12 Mar 2013 at 4:44

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/7578045/

Original comment by pele...@google.com on 12 Mar 2013 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 12 Mar 2013 at 4:49

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 12 Mar 2013 at 9:15