cloudcp
v0.1.2
Published
Copy local files to any cloud storage provider supported by pkgcloud
Downloads
6
Readme
cloudcp
Copy local files to any cloud storage provider supported by pkgcloud
API
var cloudcp = require('cloudcp')
var storageClient = require('pkgcloud').storage.createClient({
// See pkgcloud documentation for details
})
var container = 'my-blob'
var remote = '/remote/file.txt'
cloudcp('/local/file.txt', {
storageClient, container, remote
}).then(function (file) {
console.log(file)
}).catch(function (err) {
console.log(err)
})