Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to export multiple files or a complete folder to OneDrive with a hololens?

Discussion in 'VR' started by LR-Developer, Mar 13, 2018.

  1. LR-Developer

    LR-Developer

    Joined:
    May 5, 2017
    Posts:
    109
    Hello,

    I have stored my app data to some own Folder, which contains XML files and Pictures and Videos I have taken.
    It is in a Sub folder here:

    Code (CSharp):
    1. #if !UNITY_EDITOR && UNITY_METRO
    2.        Globals.DataPath = Windows.Storage.ApplicationData.Current.LocalCacheFolder.Path; // survives shutdown but not new deploy of app
    3. #else
    4.         Globals.DataPath = Application.persistentDataPath;
    5. #endif
    Now I want to backup my data or copy it to a UWP Client app,, which is not on HoloLens.
    My idea was to use OneDrive.

    I know how to Import single files from OneDrive using the FileOpenPicker.

    But how can I export a Folder of many files?

    The FolderPicker does not work on HoloLens, it never Shows up and always Returns null.

    How can I Export my files?

    Thanks a lot :)