create/delete file

mattia23mattia23 italyPosts: 8Member
edited August 2013 in Unity on OUYA
hi, 
i'm trying to manage file in ouya storage/usbdrive through an unity app.

the functions that i use are:  File.Create(path); and File.Delete(path); but the results always are "UnauthorizedAccessException: Access to the path "/mnt/usbdrive/..../ " is denied.

is there any way to solve this problem? do i need root privileges?

the same program works in unity editor.



Post edited by mattia23 on

Best Answer

Answers

  • CanallaCanalla ChilePosts: 4Member
    Are you using an NTFS drive for the test? ouya doesn't let you have write access on those
  • mattia23mattia23 italyPosts: 8Member

    Canalla said:
    Are you using an NTFS drive for the test?
    there is the same problem with a FAT32 drive and also the internal storage.
  • JohnGabyJohnGaby Posts: 21Member
    Does OUYA require the Android 'write to SD card' permission to access the USB drive?
  • mattia23mattia23 italyPosts: 8Member
    Thanks, now works
Sign In or Register to comment.