(self, keys)
| 62 | return FileKey(bucket=self, name=name) |
| 63 | |
| 64 | def delete_keys(self, keys): |
| 65 | for k in keys: |
| 66 | key_path = os.path.join("/", k.strip("/")) |
| 67 | os.remove(key_path) |
| 68 | # deleting files can leave empty dirs => trim them |
| 69 | common_path = os.path.join("/", common_dir_path(keys).strip("/")) |
| 70 | remove_empty_dirs(common_path) |
| 71 | |
| 72 | def list(self, prefix): |
| 73 | path = "/" + prefix |