Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(293)

Unified Diff: Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs

Issue 97380043: Issue 462: Improve FileDataStore implementation (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: minor Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Src/GoogleApis.Auth.DotNet4/OAuth2/GoogleWebAuthorizationBroker.cs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs
===================================================================
--- a/Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs
+++ b/Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs
@@ -37,10 +37,12 @@
/// Constructs a new file data store with the specified folder. This folder is created (if it doesn't exist
/// yet) under <see cref="Environment.SpecialFolder.ApplicationData"/>.
/// </summary>
- /// <param name="folder">Folder name.</param>
- public FileDataStore(string folder)
+ /// <param name="folderPath">
+ /// Folder path. From version 1.8.2 this string contains the full path and not just a relative folder.
+ /// </param>
+ public FileDataStore(string folderPath)
{
- folderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), folder);
+ folderPath = folderPath;
if (!Directory.Exists(folderPath))
{
Directory.CreateDirectory(folderPath);
« no previous file with comments | « Src/GoogleApis.Auth.DotNet4/OAuth2/GoogleWebAuthorizationBroker.cs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b