-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The b2 API supports copying files through the endpoint b2_copy_file. The options array supports BucketName or BucketId, FileName, SaveAs, and optionally destinationBucketId or destinationBucketName. As a bonus, there is now getFileIdFromBucketIdAndFileName, a faster way to retrieve FileIds for single files.
- Loading branch information
Showing
5 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"accountId": "accountId", | ||
"bucketId": "bucketId", | ||
"contentLength": 20, | ||
"contentSha1": "bc77b0349d325be71ed2ca26d5e68173210e9e18", | ||
"contentType": "application/octet-stream", | ||
"fileId": "4_z4c2b953461da9c825f260e1b_f1114dbf5bg9707e8_d20160206_m012226_c001_v1111017_t0010", | ||
"fileInfo": { | ||
"src_last_modified_millis": "1454721688784" | ||
}, | ||
"action": "upload", | ||
"uploadTimestamp": "1465983870000", | ||
"fileName": "Test file.bin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"accountId": "accountId", | ||
"bucketId": "bucketId", | ||
"contentLength": 20, | ||
"contentSha1": "bc77b0349d325be71ed2ca26d5e68173210e9e18", | ||
"contentType": "application/octet-stream", | ||
"fileId": "4_z4c2b953461da9c825f260e1b_f1114dbf5bg9707e8_d20160206_m012226_c001_v1111017_t0010", | ||
"fileInfo": { | ||
"src_last_modified_millis": "1454721688784" | ||
}, | ||
"action": "upload", | ||
"uploadTimestamp": "1465983870000", | ||
"fileName": "Test file.bin" | ||
} | ||
] | ||
} |