| 624 | end |
| 625 | |
| 626 | def files |
| 627 | _files = [] |
| 628 | directories = [""] |
| 629 | until directories.empty? |
| 630 | directory = directories.shift |
| 631 | list(directory).each do |path| |
| 632 | resolved_path = "#{directory}#{path}" |
| 633 | case path |
| 634 | when "../" |
| 635 | when /\/\z/ |
| 636 | directories << resolved_path |
| 637 | else |
| 638 | _files << resolved_path |
| 639 | end |
| 640 | end |
| 641 | end |
| 642 | _files |
| 643 | end |
| 644 | |
| 645 | def list(path) |
| 646 | url = build_deployed_url(path) |