| 530 | end |
| 531 | |
| 532 | def files |
| 533 | _files = [] |
| 534 | directories = [""] |
| 535 | until directories.empty? |
| 536 | directory = directories.shift |
| 537 | list(directory).each do |path| |
| 538 | resolved_path = "#{directory}#{path}" |
| 539 | case path |
| 540 | when "../" |
| 541 | when /\/\z/ |
| 542 | directories << resolved_path |
| 543 | else |
| 544 | _files << resolved_path |
| 545 | end |
| 546 | end |
| 547 | end |
| 548 | _files |
| 549 | end |
| 550 | |
| 551 | def list(path) |
| 552 | url = build_deployed_url(path) |