Forum Discussion

danielCV's avatar
danielCV
Copper Contributor
Oct 12, 2022

Can i create a directory in Hololens 2 Unity?

Hello everyone,

I have a project that needs to download files and load them locally in my Hololens 2. I try to create a directory with the following code:
      string path = Application.persistentDataPath;
        debug.text = path;
        if (!Directory.Exists(path))
        {
            Directory.CreateDirectory(path);
            debug.text = "success";
        }

 

 

but don't work.
My question is, can I create folders or directories in my hololens 2 and download files there?? and whether is possible, where could I find an example of directory creation??

 

Resources