github.com/Files-com/files-sdk-go/v3@v3.1.81/file/fixtures/TestUploader/uploader/copy_foo_to_Dest_with_PreserveTimes.yaml (about) 1 --- 2 version: 1 3 interactions: 4 - request: 5 body: '{}' 6 form: {} 7 headers: 8 Content-Type: 9 - application/json 10 User-Agent: 11 - Files.com Go SDK 1.0 12 url: https://app.files.com/api/rest/v1/folders/tmp 13 method: POST 14 response: 15 body: '{"error":"The destination exists.","http-code":422,"instance":"27de004e39b249067898d5f839747bca","title":"Destination 16 Exists","type":"processing-failure/destination-exists"}' 17 headers: 18 Cache-Control: 19 - no-cache, no-store, max-age=0, must-revalidate 20 Content-Length: 21 - "173" 22 Content-Type: 23 - application/json 24 Date: 25 - Mon, 22 Apr 2024 21:26:59 GMT 26 Expires: 27 - Fri, 01 Jan 1990 00:00:00 GMT 28 Pragma: 29 - no-cache 30 Server: 31 - files.com 32 X-Files-Error-Class: 33 - processing-failure/destination-exists 34 X-Request-Id: 35 - 27de004e39b249067898d5f839747bca 36 status: 422 Unprocessable Entity 37 code: 422 38 duration: "" 39 - request: 40 body: '{}' 41 form: {} 42 headers: 43 Content-Type: 44 - application/json 45 User-Agent: 46 - Files.com Go SDK 1.0 47 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes 48 method: POST 49 response: 50 body: '{"error":"The destination exists.","http-code":422,"instance":"32b946a12e59cfb44f2b11749574b78b","title":"Destination 51 Exists","type":"processing-failure/destination-exists"}' 52 headers: 53 Cache-Control: 54 - no-cache, no-store, max-age=0, must-revalidate 55 Content-Length: 56 - "173" 57 Content-Type: 58 - application/json 59 Date: 60 - Mon, 22 Apr 2024 21:26:59 GMT 61 Expires: 62 - Fri, 01 Jan 1990 00:00:00 GMT 63 Pragma: 64 - no-cache 65 Server: 66 - files.com 67 X-Files-Error-Class: 68 - processing-failure/destination-exists 69 X-Request-Id: 70 - 32b946a12e59cfb44f2b11749574b78b 71 status: 422 Unprocessable Entity 72 code: 422 73 duration: "" 74 - request: 75 body: '{}' 76 form: {} 77 headers: 78 Content-Type: 79 - application/json 80 User-Agent: 81 - Files.com Go SDK 1.0 82 url: https://app.files.com/api/rest/v1/folders/tmp 83 method: POST 84 response: 85 body: '{"error":"The destination exists.","http-code":422,"instance":"d68e540faed08d58f7b30e5d58a7db41","title":"Destination 86 Exists","type":"processing-failure/destination-exists"}' 87 headers: 88 Cache-Control: 89 - no-cache, no-store, max-age=0, must-revalidate 90 Content-Length: 91 - "173" 92 Content-Type: 93 - application/json 94 Date: 95 - Mon, 22 Apr 2024 21:26:59 GMT 96 Expires: 97 - Fri, 01 Jan 1990 00:00:00 GMT 98 Pragma: 99 - no-cache 100 Server: 101 - files.com 102 X-Files-Error-Class: 103 - processing-failure/destination-exists 104 X-Request-Id: 105 - d68e540faed08d58f7b30e5d58a7db41 106 status: 422 Unprocessable Entity 107 code: 422 108 duration: "" 109 - request: 110 body: '{}' 111 form: {} 112 headers: 113 Content-Type: 114 - application/json 115 User-Agent: 116 - Files.com Go SDK 1.0 117 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes 118 method: POST 119 response: 120 body: '{"error":"The destination exists.","http-code":422,"instance":"904c011e18ac4f7828e0983562c77330","title":"Destination 121 Exists","type":"processing-failure/destination-exists"}' 122 headers: 123 Cache-Control: 124 - no-cache, no-store, max-age=0, must-revalidate 125 Content-Length: 126 - "173" 127 Content-Type: 128 - application/json 129 Date: 130 - Mon, 22 Apr 2024 21:26:59 GMT 131 Expires: 132 - Fri, 01 Jan 1990 00:00:00 GMT 133 Pragma: 134 - no-cache 135 Server: 136 - files.com 137 X-Files-Error-Class: 138 - processing-failure/destination-exists 139 X-Request-Id: 140 - 904c011e18ac4f7828e0983562c77330 141 status: 422 Unprocessable Entity 142 code: 422 143 duration: "" 144 - request: 145 body: '{}' 146 form: {} 147 headers: 148 Content-Type: 149 - application/json 150 User-Agent: 151 - Files.com Go SDK 1.0 152 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root 153 method: POST 154 response: 155 body: '{"error":"The destination exists.","http-code":422,"instance":"c7ebeeb2d4db636be800b3b8df6cdd9f","title":"Destination 156 Exists","type":"processing-failure/destination-exists"}' 157 headers: 158 Cache-Control: 159 - no-cache, no-store, max-age=0, must-revalidate 160 Content-Length: 161 - "173" 162 Content-Type: 163 - application/json 164 Date: 165 - Mon, 22 Apr 2024 21:27:00 GMT 166 Expires: 167 - Fri, 01 Jan 1990 00:00:00 GMT 168 Pragma: 169 - no-cache 170 Server: 171 - files.com 172 X-Files-Error-Class: 173 - processing-failure/destination-exists 174 X-Request-Id: 175 - c7ebeeb2d4db636be800b3b8df6cdd9f 176 status: 422 Unprocessable Entity 177 code: 422 178 duration: "" 179 - request: 180 body: '{}' 181 form: {} 182 headers: 183 Content-Type: 184 - application/json 185 User-Agent: 186 - Files.com Go SDK 1.0 187 url: https://app.files.com/api/rest/v1/folders/tmp 188 method: POST 189 response: 190 body: '{"error":"The destination exists.","http-code":422,"instance":"2fddda5795ce3c280b4b2fdadc068c0c","title":"Destination 191 Exists","type":"processing-failure/destination-exists"}' 192 headers: 193 Cache-Control: 194 - no-cache, no-store, max-age=0, must-revalidate 195 Content-Length: 196 - "173" 197 Content-Type: 198 - application/json 199 Date: 200 - Mon, 22 Apr 2024 21:27:00 GMT 201 Expires: 202 - Fri, 01 Jan 1990 00:00:00 GMT 203 Pragma: 204 - no-cache 205 Server: 206 - files.com 207 X-Files-Error-Class: 208 - processing-failure/destination-exists 209 X-Request-Id: 210 - 2fddda5795ce3c280b4b2fdadc068c0c 211 status: 422 Unprocessable Entity 212 code: 422 213 duration: "" 214 - request: 215 body: '{}' 216 form: {} 217 headers: 218 Content-Type: 219 - application/json 220 User-Agent: 221 - Files.com Go SDK 1.0 222 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes 223 method: POST 224 response: 225 body: '{"error":"The destination exists.","http-code":422,"instance":"802e31535363f4e204ee1f5c2d0d2ff6","title":"Destination 226 Exists","type":"processing-failure/destination-exists"}' 227 headers: 228 Cache-Control: 229 - no-cache, no-store, max-age=0, must-revalidate 230 Content-Length: 231 - "173" 232 Content-Type: 233 - application/json 234 Date: 235 - Mon, 22 Apr 2024 21:27:00 GMT 236 Expires: 237 - Fri, 01 Jan 1990 00:00:00 GMT 238 Pragma: 239 - no-cache 240 Server: 241 - files.com 242 X-Files-Error-Class: 243 - processing-failure/destination-exists 244 X-Request-Id: 245 - 802e31535363f4e204ee1f5c2d0d2ff6 246 status: 422 Unprocessable Entity 247 code: 422 248 duration: "" 249 - request: 250 body: '{}' 251 form: {} 252 headers: 253 Content-Type: 254 - application/json 255 User-Agent: 256 - Files.com Go SDK 1.0 257 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root 258 method: POST 259 response: 260 body: '{"error":"The destination exists.","http-code":422,"instance":"c3971b27f6d1388a4a317e8725273f87","title":"Destination 261 Exists","type":"processing-failure/destination-exists"}' 262 headers: 263 Cache-Control: 264 - no-cache, no-store, max-age=0, must-revalidate 265 Content-Length: 266 - "173" 267 Content-Type: 268 - application/json 269 Date: 270 - Mon, 22 Apr 2024 21:27:00 GMT 271 Expires: 272 - Fri, 01 Jan 1990 00:00:00 GMT 273 Pragma: 274 - no-cache 275 Server: 276 - files.com 277 X-Files-Error-Class: 278 - processing-failure/destination-exists 279 X-Request-Id: 280 - c3971b27f6d1388a4a317e8725273f87 281 status: 422 Unprocessable Entity 282 code: 422 283 duration: "" 284 - request: 285 body: '{}' 286 form: {} 287 headers: 288 Content-Type: 289 - application/json 290 User-Agent: 291 - Files.com Go SDK 1.0 292 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest 293 method: POST 294 response: 295 body: '{"error":"The destination exists.","http-code":422,"instance":"6e6e1c4b624b4878e70e3f4fd4e05624","title":"Destination 296 Exists","type":"processing-failure/destination-exists"}' 297 headers: 298 Cache-Control: 299 - no-cache, no-store, max-age=0, must-revalidate 300 Content-Length: 301 - "173" 302 Content-Type: 303 - application/json 304 Date: 305 - Mon, 22 Apr 2024 21:27:00 GMT 306 Expires: 307 - Fri, 01 Jan 1990 00:00:00 GMT 308 Pragma: 309 - no-cache 310 Server: 311 - files.com 312 X-Files-Error-Class: 313 - processing-failure/destination-exists 314 X-Request-Id: 315 - 6e6e1c4b624b4878e70e3f4fd4e05624 316 status: 422 Unprocessable Entity 317 code: 422 318 duration: "" 319 - request: 320 body: '{"mkdir_parents":true}' 321 form: {} 322 headers: 323 Content-Type: 324 - application/json 325 User-Agent: 326 - Files.com Go SDK 1.0 327 url: https://app.files.com/api/rest/v1/file_actions/begin_upload/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest/foo/baz.txt 328 method: POST 329 response: 330 body: '[{"send":{"partsize":"required-header Content-Length","partdata":"body"},"action":"put/write","ask_about_overwrites":false,"available_parts":10000,"expires":"2024-04-22T21:42:05Z","headers":{},"http_method":"PUT","next_partsize":6291456,"parallel_parts":true,"retry_parts":true,"parameters":{},"part_number":1,"partsize":5242880,"ref":"put-8590319511","upload_uri":"https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/7e6da982-d048-4e96-801e-fafb2b2feed0?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20240422%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20240422T212705Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026partNumber=1\u0026response-content-type=application%2Foctet-stream\u0026uploadId=pNQuuC52N7pIROAQsmn8vwKm.pC5iKy7GSLv7LaacyUzIX4EAG7KPFsAhlTY7GFsTfNZuiwZX5rGTpb.EUI8KTBnUo.imRnnv0qSXmcigycZQWc9Jr4nhRmzqWHf.9eu\u0026X-Amz-Signature=5cbeae799c3a1993b6416db798eabab1457ede81c2ceaa8b92d43fd0abb04a4e"}]' 331 headers: 332 Cache-Control: 333 - no-cache, no-store, max-age=0, must-revalidate 334 Content-Type: 335 - application/json 336 Date: 337 - Mon, 22 Apr 2024 21:27:05 GMT 338 Expires: 339 - Fri, 01 Jan 1990 00:00:00 GMT 340 Pragma: 341 - no-cache 342 Server: 343 - files.com 344 X-Request-Id: 345 - 35de6e9902b0b62ec86a7d4c39540ae2 346 status: 200 OK 347 code: 200 348 duration: "" 349 - request: 350 body: "" 351 form: {} 352 headers: 353 Content-Length: 354 - "0" 355 url: https://s3.amazonaws.com/objects.brickftp.com/metadata/37263/7e6da982-d048-4e96-801e-fafb2b2feed0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIEWLY3MN4YGZQOWA%2F20240422%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240422T212705Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&partNumber=1&response-content-type=application%2Foctet-stream&uploadId=pNQuuC52N7pIROAQsmn8vwKm.pC5iKy7GSLv7LaacyUzIX4EAG7KPFsAhlTY7GFsTfNZuiwZX5rGTpb.EUI8KTBnUo.imRnnv0qSXmcigycZQWc9Jr4nhRmzqWHf.9eu&X-Amz-Signature=5cbeae799c3a1993b6416db798eabab1457ede81c2ceaa8b92d43fd0abb04a4e 356 method: PUT 357 response: 358 body: "" 359 headers: 360 Content-Length: 361 - "0" 362 Date: 363 - Mon, 22 Apr 2024 21:27:06 GMT 364 Etag: 365 - '"d41d8cd98f00b204e9800998ecf8427e"' 366 Server: 367 - AmazonS3 368 X-Amz-Id-2: 369 - LBlZLnuy45Fgnd7IOTLMRlNrMk1prLloGhvRhp1Jjz2sskxWyeMXfbKQTXNy0+ywFMPWEHF0gwo= 370 X-Amz-Request-Id: 371 - RVXM5SG9WDJ4DWVY 372 X-Amz-Server-Side-Encryption: 373 - AES256 374 status: 200 OK 375 code: 200 376 duration: "" 377 - request: 378 body: '{"action":"end","etags":[{"etag":"d41d8cd98f00b204e9800998ecf8427e","part":"1"}],"mkdir_parents":true,"provided_mtime":"2010-11-17T12:34:58-08:00","ref":"put-8590319511"}' 379 form: {} 380 headers: 381 Content-Type: 382 - application/json 383 User-Agent: 384 - Files.com Go SDK 1.0 385 url: https://app.files.com/api/rest/v1/files/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest/foo/baz.txt 386 method: POST 387 response: 388 body: '{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest/foo/baz.txt","display_name":"baz.txt","type":"file","size":0,"created_at":"2024-04-22T21:27:06Z","mtime":"2024-04-22T21:27:06Z","provided_mtime":"2010-11-17T20:34:58Z","crc32":null,"md5":null,"mime_type":"text/plain","region":"us-east-1","permissions":"lrwd"}' 389 headers: 390 Cache-Control: 391 - no-cache, no-store, max-age=0, must-revalidate 392 Content-Type: 393 - application/json 394 Date: 395 - Mon, 22 Apr 2024 21:27:06 GMT 396 Expires: 397 - Fri, 01 Jan 1990 00:00:00 GMT 398 Pragma: 399 - no-cache 400 Server: 401 - files.com 402 X-Files-Cache-For-Seconds: 403 - "900" 404 X-Files-Safe-To-Cache: 405 - "true" 406 X-Request-Id: 407 - 335eeaded2a938af24b4bd4a91691bca 408 status: 200 OK 409 code: 200 410 duration: "" 411 - request: 412 body: "" 413 form: {} 414 headers: 415 User-Agent: 416 - Files.com Go SDK 1.0 417 url: https://app.files.com/api/rest/v1/file_actions/metadata/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest 418 method: GET 419 response: 420 body: '{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest","display_name":"Dest","type":"directory","size":null,"created_at":"2024-04-22T21:25:19Z","mtime":"2024-04-22T21:27:06Z","provided_mtime":null,"crc32":null,"md5":null,"permissions":"lrwd","subfolders_locked?":false,"is_locked":false}' 421 headers: 422 Cache-Control: 423 - no-cache, no-store, max-age=0, must-revalidate 424 Content-Type: 425 - application/json 426 Date: 427 - Mon, 22 Apr 2024 21:27:06 GMT 428 Expires: 429 - Fri, 01 Jan 1990 00:00:00 GMT 430 Pragma: 431 - no-cache 432 Server: 433 - files.com 434 X-Files-Cache-For-Seconds: 435 - "900" 436 X-Files-Safe-To-Cache: 437 - "true" 438 X-Request-Id: 439 - 735bcb4a3f4a2d2ecf625327351f948a 440 status: 200 OK 441 code: 200 442 duration: "" 443 - request: 444 body: "" 445 form: {} 446 headers: 447 User-Agent: 448 - Files.com Go SDK 1.0 449 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest?page=1 450 method: GET 451 response: 452 body: '[{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest/foo","display_name":"foo","type":"directory","size":null,"created_at":"2024-04-22T21:25:30Z","mtime":"2024-04-22T21:27:06Z","provided_mtime":null,"crc32":null,"md5":null,"permissions":"lrwd","subfolders_locked?":false,"is_locked":false}]' 453 headers: 454 Cache-Control: 455 - no-cache, no-store, max-age=0, must-revalidate 456 Content-Type: 457 - application/json 458 Date: 459 - Mon, 22 Apr 2024 21:27:06 GMT 460 Expires: 461 - Fri, 01 Jan 1990 00:00:00 GMT 462 Pragma: 463 - no-cache 464 Server: 465 - files.com 466 X-Files-Cache-For-Seconds: 467 - "900" 468 X-Files-Safe-To-Cache: 469 - "true" 470 X-Request-Id: 471 - 274d83bd8eec56537d2ff3f5f48d6b45 472 status: 200 OK 473 code: 200 474 duration: "" 475 - request: 476 body: "" 477 form: {} 478 headers: 479 User-Agent: 480 - Files.com Go SDK 1.0 481 url: https://app.files.com/api/rest/v1/folders/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest/foo?page=1 482 method: GET 483 response: 484 body: '[{"path":"tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root/Dest/foo/baz.txt","display_name":"baz.txt","type":"file","size":0,"created_at":"2024-04-22T21:27:06Z","mtime":"2024-04-22T21:27:06Z","provided_mtime":"2010-11-17T20:34:58Z","crc32":"0","md5":"d41d8cd98f00b204e9800998ecf8427e","mime_type":"text/plain","region":"us-east-1","permissions":"lrwd"}]' 485 headers: 486 Cache-Control: 487 - no-cache, no-store, max-age=0, must-revalidate 488 Content-Type: 489 - application/json 490 Date: 491 - Mon, 22 Apr 2024 21:27:06 GMT 492 Expires: 493 - Fri, 01 Jan 1990 00:00:00 GMT 494 Pragma: 495 - no-cache 496 Server: 497 - files.com 498 X-Files-Cache-For-Seconds: 499 - "900" 500 X-Files-Safe-To-Cache: 501 - "true" 502 X-Request-Id: 503 - c0353aac7f5785fa057f145be7806fc4 504 status: 200 OK 505 code: 200 506 duration: "" 507 - request: 508 body: "" 509 form: {} 510 headers: 511 User-Agent: 512 - Files.com Go SDK 1.0 513 url: https://app.files.com/api/rest/v1/files/tmp/TestUploader-uploader-copy_foo_to_Dest_with_PreserveTimes/dest-root?recursive=true 514 method: DELETE 515 response: 516 body: "" 517 headers: 518 Cache-Control: 519 - no-cache, no-store, max-age=0, must-revalidate 520 Date: 521 - Mon, 22 Apr 2024 21:27:10 GMT 522 Expires: 523 - Fri, 01 Jan 1990 00:00:00 GMT 524 Pragma: 525 - no-cache 526 Server: 527 - files.com 528 X-Request-Id: 529 - e68870306652257e22d2cc665d1aaad2 530 status: 204 No Content 531 code: 204 532 duration: ""