Nature Preceded Machines

    bucket-rename-dir

    0.3.1 • Public • Published

    bucket-rename-dir

    Rename directories for Amazon S3 objects.

    Install

    NPM

    Usage

     
    var BucketRenameDir = require('bucket-rename-dir');
    var renameDir = BucketRenameDir.connect({
      key: 's3-key',
      secret: 's3-secret'
      bucket: 'name-of-the-s3-bucket'
    });
     
     
    // Use as a stream or with callbacks
     
    // Stream
    renameDir('some/directory/path', 'some/NEW_directory/path').pipe(process.stdout);
     
    // Callback
    renameDir('some/directory/path', 'some/NEW_directory/path', function (err, affectedObjects) {
      // affectedObjects is an object containing key/value pairs
      // of original object name and new object name:
       
      // {
      //   'some/directory/path': 'some/NEW-directory/path'
      // }
    });
     

    Keywords

    none

    Install

    npm i bucket-rename-dir

    DownloadsWeekly Downloads

    2

    Version

    0.3.1

    License

    MIT

    Last publish

    Collaborators

    • scottcorgan