Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openstack storage copy command #396

Closed
tewlegit opened this issue Feb 11, 2015 · 3 comments
Closed

openstack storage copy command #396

tewlegit opened this issue Feb 11, 2015 · 3 comments

Comments

@tewlegit
Copy link

I know this is commented that it's untested, and it indeed does not work, but it's not far off. Any chance you could update it with this working version in openstack/storage/file.js:

File.prototype.copy = function (container, destination, callback) {
  var copyOptions = {
    method: 'COPY',
    uri: this.fullPath,
    headers: {
      'DESTINATION': [container, destination].join('/'),
    }
  };

  this.client._request(copyOptions, function (err) {
    return err
      ? callback(err)
      : callback(null, true);
  });
};
@kenperkins
Copy link
Member

Funny that. Take a look at #350.

@tewlegit
Copy link
Author

my bad, sorry I missed that. glad to know it's coming!

@kenperkins
Copy link
Member

No problem! Glad to have people asking for features 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants