Can't save on D drive

Discussion and help for Easy Save 3
Post Reply
Digital Wizards
Posts: 1
Joined: Mon Nov 04, 2019 6:15 pm

Can't save on D drive

Post by Digital Wizards »

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

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

ES3Spreadsheet sheet = new ES3Spreadsheet();
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, !

User avatar
Moodkie Staff
Posts: 2796
Joined: Wed Nov 07, 2012 10:32 pm

Re: Can't save on D drive

Post by Joel »

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 @ Moodkie Interactive
Twitter - Unity

Post Reply