(self, prefix)
| 70 | remove_empty_dirs(common_path) |
| 71 | |
| 72 | def list(self, prefix): |
| 73 | path = "/" + prefix |
| 74 | file_paths = [os.path.join(root, f) |
| 75 | for root, dirs, files in os.walk(path) for f in files] |
| 76 | # convert to an array of Keys |
| 77 | return [FileKey(bucket=self, name=f) for f in file_paths] |
| 78 | |
| 79 | |
| 80 | class Connection(object): |