Skip to content

Commit 20a2d63

Browse files
authored
Merge pull request #299 from wong2/chstatus
Add changeStatusOp
2 parents 8442eaf + 91b81d0 commit 20a2d63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qiniu/storage/rs.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ exports.changeTypeOp = function(bucket, key, newType) {
661661
return '/chtype/' + encodedEntryURI + '/type/' + newType;
662662
}
663663

664+
exports.changeStatusOp = function(bucket, key, newStatus) {
665+
var encodedEntryURI = util.encodedEntry(bucket, key);
666+
return '/chstatus/' + encodedEntryURI + '/status/' + newStatus;
667+
}
668+
664669
exports.moveOp = function(srcBucket, srcKey, destBucket, destKey, options) {
665670
options = options || {};
666671
var encodedEntryURISrc = util.encodedEntry(srcBucket, srcKey);

0 commit comments

Comments
 (0)