Could be a security issue (try chmod ing the file).
On Jul 23, 2013 7:08 AM, "JLee" <mono.andr...@gridline.de> wrote:

> I think, the following code worked in the past but now I get an error when
> setting the timestamps (Invalide Parameter).
>
> FileInfo fi = new FileInfo(file);
> fi.Attributes = FileAttributes.Normal; <-works
> fi.CreationTime = timeCreate;  <-fail
> fi.LastWriteTime = timeLastWrite; <-fail
> fi.LastAccessTime = timeLastWrite; <-fail
> fi = null;
>
> My mono-version hasn't changed (still 4.2.7) for month, now.
> Has google something changed in Android that prevents changing filetimes?
>
>
> regards
> Lee
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Can-t-set-CreationTime-on-File-tp5713422.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
>
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

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

Reply via email to