public FileInfo Invoke(string fileId, bool ignoreTrash, bool updateCachedData, bool getChildren) { try { using (DriveService driveService = DriveService.Create()) { FileInfo fileInfo = driveService.GetCachedFile(fileId, getChildren, updateCachedData); if (fileInfo == null) { throw new Exception("File no longer exists."); } return(fileInfo); } } catch (Exception exception) { Log.Error(exception); return(null); } }