是否可以通过Google Drive API确定该文件夹是否为共享Drive文件夹?
以下是我用来检查此代码:
DriveService service = GetService();
var request = service.Files.List();
request.IncludeTeamDriveItems = true;
request.SupportsTeamDrives = true;
IList<File> listFiles = request.Execute().Files;
if (listFiles != null && listFiles.Count > 0)
{
foreach (var file in listFiles)
{
if(file.TeamDriveId == aIdFolder)
{
//Yes It's a shared drive folder
}
}
}
请咨询。