(path)
| 549 | end |
| 550 | |
| 551 | def list(path) |
| 552 | url = build_deployed_url(path) |
| 553 | with_retry(3, url) do |
| 554 | begin |
| 555 | request(:get, {}, url) do |response| |
| 556 | response.body.scan(/<a href="(.+?)"/).flatten.collect do |href| |
| 557 | href.delete_prefix(url.to_s) |
| 558 | end |
| 559 | end |
| 560 | rescue Error => error |
| 561 | case error.response |
| 562 | when Net::HTTPNotFound |
| 563 | return [] |
| 564 | else |
| 565 | raise |
| 566 | end |
| 567 | end |
| 568 | end |
| 569 | end |
| 570 | |
| 571 | def upload(path, destination_path) |
| 572 | destination_url = build_api_url(destination_path) |