private void putInFolderInThread(UnityGoogleDrive.Data.File file)
    {
        GoogleDriveFiles.CreateRequest request;
        PhotoSession.PhotoFolder       folder = instance.getFolder(instance.folderNameGlobal, instance.folderDateGlobal);
        string p = Path.Combine(datapath, folder.folderName + "_" + folder.data
                                + "_" + folder.modelid + "_" + folder.userid);


        foreach (var link in folder.files)
        {
            string path   = Path.Combine(p, link.name);
            Sprite sprite = SpriteLoader.GetSpriteFromFileWithCompression(path);
            var    filen  = new UnityGoogleDrive.Data.File()
            {
                Name    = GenerateName() + GetId(link.id + 1),
                Content = sprite.texture.EncodeToPNG(),
                Parents = new List <string> {
                    file.Id
                }
            };
            request        = GoogleDriveFiles.Create(filen);
            request.Fields = new List <string> {
                "id", "name", "size", "createdTime"
            };
            request.Send().OnDone += instance.PrintResult;
        }
        instance.folderNameGlobal = "";
    }