We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcf03d1 + 4e3da11 commit e60acccCopy full SHA for e60accc
packages/extension-driver-bq/src/lib/bqDataSource.ts
@@ -92,7 +92,7 @@ export class BQDataSource extends DataSource<any, BQOptions> {
92
const [job] = await bigQuery.createQueryJob(queryOptions);
93
await this.runJobAndWait(job);
94
const getFilesResponse = await storage.bucket(bucketName).getFiles({
95
- prefix: directory.slice(1), // remove the first slash
+ prefix: directory[0] === '/' ? directory.slice(1) : directory, // remove the first slash if needed
96
});
97
await Promise.all(
98
getFilesResponse[0].map(async (file) => {
0 commit comments