mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Renamer discovers _Sero Batch roots under Property Folders 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
dcd2a7442f
commit
a442dcfbaa
1 changed files with 8 additions and 1 deletions
|
|
@ -67,7 +67,14 @@ class SharepointRenamerOrchestrator:
|
|||
self._dry_run = dry_run
|
||||
|
||||
def _discover_roots(self) -> list[str]:
|
||||
raise NotImplementedError
|
||||
contents = self._sp_client.get_folders_in_path(BASE_PATH)
|
||||
batch_roots = sorted(
|
||||
f"{BASE_PATH}/{item['name']}"
|
||||
for item in contents.get("value", [])
|
||||
if "folder" in item
|
||||
and item["name"].lower().startswith(BATCH_FOLDER_PREFIX.lower())
|
||||
)
|
||||
return [BASE_PATH, *batch_roots]
|
||||
|
||||
def run(self) -> None:
|
||||
with open(self._csv_path, newline="", encoding="utf-8-sig") as f:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue