Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Feature/gcs better list (#132)
Browse files Browse the repository at this point in the history
* List gcs files the real way

* Bump version
  • Loading branch information
MrGuzior authored Mar 4, 2024
1 parent 4c558c3 commit ed75176
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/utils/gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function list(gcsPath, configName = "gcs") {

const [ files ] = await storage.bucket(Bucket).getFiles(opts);

return files?.length ? files : [];
return files?.length ? files.map((f) => `gs://${path.join(Bucket, f.name)}`) : [];
}

function toLakeDate(date) {
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lu-common",
"version": "7.1.0",
"version": "7.2.0",
"description": "",
"main": "index.js",
"engines": {
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@bonniernews/eslint-config": "^1.1.0",
"@bonniernews/lu-test": "^8.0.0",
"@bonniernews/lu-test": "~8.0.2",
"c8": "^9.1.0",
"chai": "^4.3.10",
"chai-exclude": "^2.1.0",
Expand Down

0 comments on commit ed75176

Please sign in to comment.