Connect to the S3-compatible bucket using your preferred SDK or tool.
import { S3Client, ListObjectsV2Command } from "@aws-sdk/client-s3";
const s3 = new S3Client({
endpoint: "https://t3.storage.dev",
region: "auto",
credentials: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
},
forcePathStyle: true,
});
const result = await s3.send(new ListObjectsV2Command({
Bucket: "pinax-parquet-public",
Prefix: "your_table/",
Delimiter: "/",
}));
console.log(result.Contents);Replace your-access-key and your-secret-key with your actual credentials.