1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Rename mkdir --> mb

This commit is contained in:
Harshavardhana
2015-02-09 15:03:06 -08:00
parent b793087f12
commit 4104278e98
7 changed files with 62 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
'use strict'
var AWS = require('aws-sdk');
var config = {
accessKeyId: "YOUR_MINIO_ACCESS_ID",
secretAccessKey: "YOUR_MINIO_SECRET_KEY",
endpoint: "localhost:9000",
region: "",
sslEnabled: false
};
AWS.config.update(config);
var s3 = new AWS.S3();
s3.listBuckets(function(err, data) {
if (err) {
console.log(err); // an error occurred
} else {
console.log(data); // successful response
}
});