[mono-android] Deleting files on external storage?
Jon Valvatne
jon at norsync.com
Wed Mar 30 02:55:38 EDT 2011
On Tue, Mar 29, 2011 at 5:25 PM, Mike Kestner <mkestner at novell.com> wrote:
> What does the output of context.GetExternalFilesDir point at, and can
> you guys create AND delete files created there?
>
> In my case Android.OS.Environment.ExternalStorageDirectory is set to
/mnt/sdcard, and trying to create/delete /mnt/sdcard/test.txt still fails on
the delete in the same way.
So the latest test case is:
String file =
Android.OS.Environment.ExternalStorageDirectory.AbsolutePath + "/test.txt";
System.IO.FileStream fs = System.IO.File.Create(file);
fs.Close();
System.IO.File.Delete(file);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110330/5a5d306f/attachment.html
More information about the Monodroid
mailing list