@@ -47,6 +47,7 @@ type Client interface {
4747 AlphaUpload (arg * CommitInfoWithProperties , content io.Reader ) (res * FileMetadata , err error )
4848 // Copy : Copy a file or folder to a different location in the user's
4949 // Dropbox. If the source path is a folder all its contents will be copied.
50+ // Deprecated: Use `CopyV2` instead
5051 Copy (arg * RelocationArg ) (res IsMetadata , err error )
5152 // CopyBatch : Copy multiple files or folders to different locations at once
5253 // in the user's Dropbox. If `RelocationBatchArg.allow_shared_folder` is
@@ -71,6 +72,7 @@ type Client interface {
7172 // Dropbox. If the source path is a folder all its contents will be copied.
7273 CopyV2 (arg * RelocationArg ) (res * RelocationResult , err error )
7374 // CreateFolder : Create a folder at a given path.
75+ // Deprecated: Use `CreateFolderV2` instead
7476 CreateFolder (arg * CreateFolderArg ) (res * FolderMetadata , err error )
7577 // CreateFolderV2 : Create a folder at a given path.
7678 CreateFolderV2 (arg * CreateFolderArg ) (res * CreateFolderResult , err error )
@@ -79,6 +81,7 @@ type Client interface {
7981 // indicates that the file or folder was deleted. The returned metadata will
8082 // be the corresponding `FileMetadata` or `FolderMetadata` for the item at
8183 // time of deletion, and not a `DeletedMetadata` object.
84+ // Deprecated: Use `DeleteV2` instead
8285 Delete (arg * DeleteArg ) (res IsMetadata , err error )
8386 // DeleteBatch : Delete multiple files/folders at once. This route is
8487 // asynchronous, which returns a job ID immediately and runs the delete
@@ -159,6 +162,7 @@ type Client interface {
159162 ListRevisions (arg * ListRevisionsArg ) (res * ListRevisionsResult , err error )
160163 // Move : Move a file or folder to a different location in the user's
161164 // Dropbox. If the source path is a folder all its contents will be moved.
165+ // Deprecated: Use `MoveV2` instead
162166 Move (arg * RelocationArg ) (res IsMetadata , err error )
163167 // MoveBatch : Move multiple files or folders to different locations at once
164168 // in the user's Dropbox. This route is 'all or nothing', which means if one
@@ -215,6 +219,7 @@ type Client interface {
215219 Upload (arg * CommitInfo , content io.Reader ) (res * FileMetadata , err error )
216220 // UploadSessionAppend : Append more data to an upload session. A single
217221 // request should not upload more than 150 MB.
222+ // Deprecated: Use `UploadSessionAppendV2` instead
218223 UploadSessionAppend (arg * UploadSessionCursor , content io.Reader ) (err error )
219224 // UploadSessionAppendV2 : Append more data to an upload session. When the
220225 // parameter close is set, this call will close the session. A single
@@ -436,6 +441,9 @@ type CopyAPIError struct {
436441}
437442
438443func (dbx * apiImpl ) Copy (arg * RelocationArg ) (res IsMetadata , err error ) {
444+ log .Printf ("WARNING: API `Copy` is deprecated" )
445+ log .Printf ("Use API `CopyV2` instead" )
446+
439447 cli := dbx .Client
440448
441449 if dbx .Config .Verbose {
@@ -927,6 +935,9 @@ type CreateFolderAPIError struct {
927935}
928936
929937func (dbx * apiImpl ) CreateFolder (arg * CreateFolderArg ) (res * FolderMetadata , err error ) {
938+ log .Printf ("WARNING: API `CreateFolder` is deprecated" )
939+ log .Printf ("Use API `CreateFolderV2` instead" )
940+
930941 cli := dbx .Client
931942
932943 if dbx .Config .Verbose {
@@ -1087,6 +1098,9 @@ type DeleteAPIError struct {
10871098}
10881099
10891100func (dbx * apiImpl ) Delete (arg * DeleteArg ) (res IsMetadata , err error ) {
1101+ log .Printf ("WARNING: API `Delete` is deprecated" )
1102+ log .Printf ("Use API `DeleteV2` instead" )
1103+
10901104 cli := dbx .Client
10911105
10921106 if dbx .Config .Verbose {
@@ -2214,6 +2228,9 @@ type MoveAPIError struct {
22142228}
22152229
22162230func (dbx * apiImpl ) Move (arg * RelocationArg ) (res IsMetadata , err error ) {
2231+ log .Printf ("WARNING: API `Move` is deprecated" )
2232+ log .Printf ("Use API `MoveV2` instead" )
2233+
22172234 cli := dbx .Client
22182235
22192236 if dbx .Config .Verbose {
@@ -3471,6 +3488,9 @@ type UploadSessionAppendAPIError struct {
34713488}
34723489
34733490func (dbx * apiImpl ) UploadSessionAppend (arg * UploadSessionCursor , content io.Reader ) (err error ) {
3491+ log .Printf ("WARNING: API `UploadSessionAppend` is deprecated" )
3492+ log .Printf ("Use API `UploadSessionAppendV2` instead" )
3493+
34743494 cli := dbx .Client
34753495
34763496 if dbx .Config .Verbose {
0 commit comments