lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] 02/05: website: Update path to use machine-level folder instead of user-level folder
Date Sun, 01 Nov 2020 15:46:37 GMT
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit e6c26c338eb342f4335e64234e5582e9eb134cc1
Author: Shad Storhaug <shad@shadstorhaug.com>
AuthorDate: Sun Nov 1 20:39:42 2020 +0700

    website: Update path to use machine-level folder instead of user-level folder
---
 websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index adc85fd..ef89a38 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -9,8 +9,8 @@
 const LuceneVersion AppLuceneVersion = LuceneVersion.LUCENE_48;
 
 // Construct a machine-independent path for the index
-var personalFolder = Environment.SpecialFolder.Personal;
-var basePath = Environment.GetFolderPath(personalFolder);
+var appDataFolder = Environment.SpecialFolder.CommonApplicationData;
+var basePath = Environment.GetFolderPath(appDataFolder);
 var indexPath = Path.Combine(basePath, "index");
 
 using var dir = FSDirectory.Open(indexPath);


Mime
View raw message