我可以插入文件,但我不知道如何创建文件夹 我试过下面的代码
private static string CreateFolder(DriveService service, string folderName)
{
var file = new File {Title = folderName, MimeType = "application/vnd.google-apps.folder"};
var result = service.Files.Insert(file).Execute();
return result.Id;
}
我收到空引用错误 我的错误在哪里