S3Store *store = g_new(S3Store, 1);
store->thread_pool = g_thread_pool_new(s3store_task, store, -1, FALSE,
NULL);
- store->bucket.bucketName = "mvrable-bluesky";
+ if (path == NULL || strlen(path) == 0)
+ store->bucket.bucketName = "mvrable-bluesky";
+ else
+ store->bucket.bucketName = g_strdup(path);
store->bucket.protocol = S3ProtocolHTTP;
store->bucket.uriStyle = S3UriStylePath;
store->bucket.accessKeyId = getenv("AWS_ACCESS_KEY_ID");