Can't save on D drive

Discussion and help for Easy Save 3

Can't save on D drive

Postby Digital Wizards » Mon Nov 04, 2019 6:20 pm

I'm doing a tool, and I need to save to any computer drive (PC)

string path = "D:/Test.csv";

ES3Spreadsheet sheet = new ES3Spreadsheet();
sheet.Load(path);
if (sheet == null)
Debug.Log("sheet == null");

for (int col = 0; col < sheet.ColumnCount; col++)
Debug.Log(sheet.GetCell<string>(col, 0));

I got this error: UnauthorizedAccessException: Access to the path "D:" is denied.

Any idea? I'm using Unity 2019.2.9f1 Thanks, !
Digital Wizards
 
Posts: 1
Joined: Mon Nov 04, 2019 6:15 pm

Re: Can't save on D drive

Postby Joel » Tue Nov 05, 2019 6:17 pm

Hi there,

This means that the application doesn't have permission to write to that location. I would check your folder permissions and firewall settings to ensure that it has permission to access the D drive. Note however that the only place an application is guaranteed access to is the path defined by Application.persistentDataPath.

All the best,
Joel
Joel Tebbett @ Moodkie Interactive
Twitter - Unity - LinkedIn
User avatar
Joel
Moodkie Staff
 
Posts: 2523
Joined: Wed Nov 07, 2012 10:32 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron