Skip to content

Commit 81339a5

Browse files
committed
try to find solution on storage problem
1 parent e44ff9f commit 81339a5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

MauiAppToolkit/ViewModels/MainViewModel.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ public async void OpenFile()
118118
{
119119
SendConsole("Begin - OpenFile");
120120

121+
// _BRY_
122+
string cacheDir = FileSystem.Current.CacheDirectory;
123+
SendConsole(String.Format("FileSystem.Current.CacheDirectory: {0}", cacheDir));
124+
string mainDir = FileSystem.Current.AppDataDirectory;
125+
SendConsole(String.Format("FileSystem.Current.AppDataDirectory: {0}", mainDir));
126+
121127
//
122128
// 1 - Open Dialog Box to read the File
123129
//
@@ -148,6 +154,7 @@ public async void OpenFile()
148154
{
149155
TextBoxFileName = result.FullPath;
150156
FileOpenned = true;
157+
SendConsole(String.Format("End - Try OpenFile : {0}", TextBoxFileName));
151158
}
152159
else
153160
{
@@ -157,8 +164,6 @@ public async void OpenFile()
157164
return;
158165
}
159166

160-
displayToConsole(String.Format("End - Try OpenFile : {0}", TextBoxFileName));
161-
162167
//
163168
// 2 - Try to read the file
164169
//

0 commit comments

Comments
 (0)