[mono-android] System.IO.File.GetAttributes returns always ReadOnly

Jonathan Pryor jonp at xamarin.com
Wed Feb 15 21:33:38 UTC 2012


I don't see that behavior. :-(

See the attached project:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Scratch.FileAttributes.zip
Type: application/zip
Size: 10352 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120215/47e9da79/attachment.zip>
-------------- next part --------------


When launched, it displays an input box and a button. Enter a path name, click the button, and it'll display the file attributes in the button. (Yes, simple. :-)

For the files I try on my device, they show up as Normal, not as ReadOnly.

 - Jon

On Jan 25, 2012, at 8:02 AM, tsukrov wrote:
> Is it a not yet implemented behaviour?
> I get ReadOnly flag for all the files on the SD card.
> 
> Shell shows
> ----rwxr-x system sdcard_rw 
> 
> My app can write the card.
> 
> Java.IO.File.canWrite() returns true.
> 
> Any suggestions how to check if the file can be written?
> 
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-IO-File-GetAttributes-returns-always-ReadOnly-tp5430132p5430132.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid



More information about the Monodroid mailing list