Create bucket.js

This commit is contained in:
smallfawn 2024-11-16 15:08:51 +08:00 committed by GitHub
parent c91bb11a1a
commit 6eb5be44ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

13
bucket.js Normal file
View File

@ -0,0 +1,13 @@
module.exports = {
getBucket,
updateBucket
}
const fs = require('fs')
function getBucket(bucketName) {
return fs.readFileSync(bucketName)
}
function updateBucket(bucketName, bucket) {
return fs.writeFileSync(bucketName, bucket)
}