Hi guys,

I am trying to write text files to a shared location in the way I could open
them from within Windows Explorer (which rules out private folder).

Here is the code
var file = GetExternalFilesDir(null);

string fileName = "Test.txt";
string filePath = Path.Combine(file.Path, fileName);

using (StreamWriter writer = new StreamWriter(filePath))
{
       writer.WriteLine("You ou ou ");
       writer.Flush();
}

Nothing fancy. And it gets the job done - it creates a folder under
/Android/data and writes the file into files subfolder. Everything is fine
except that I can't see directory nor file from Windows Explorer. It is
there (visible from both adb shell and within android device).
But if I create a file from any Android "explorer" I can see it on Windows
Explorer and the other way round as well.

Any idea? I am sure I am missing something obvious. Or not :-)

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Dirs-and-files-not-visible-to-Windows-Explorer-tp5710155.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to