public Task <QueryResult <FileSystemMetadata> > GetFiles(string[] pathParts, SyncTarget target, CancellationToken cancellationToken) { var googleCredentials = GetGoogleCredentials(target); var syncAccount = _configurationRetriever.GetSyncAccount(target.Id); return(_googleDriveService.GetFiles(pathParts, syncAccount.FolderId, googleCredentials, cancellationToken)); }
public Task <QueryResult <FileMetadata> > GetFiles(FileQuery query, SyncTarget target, CancellationToken cancellationToken) { _logger.Debug("Getting files for " + target.Name); var googleCredentials = GetGoogleCredentials(target); var syncAccount = _configurationRetriever.GetSyncAccount(target.Id); return(_googleDriveService.GetFiles(query, syncAccount.FolderId, googleCredentials, cancellationToken)); }