Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions novem/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def write_file(api_path: str, content: str) -> None:
if not fp.parent.exists():
fp.parent.mkdir(parents=True, exist_ok=True)
print(f"Creating folder: {fp.parent}")
fp.write_text(content)
fp.write_text(content, encoding="utf-8")
print(f"Writing file: {fp}")

def rec_tree(path: str) -> None:
Expand Down Expand Up @@ -107,7 +107,7 @@ def walk(full: Path, api_path: str) -> None:
return

if full.is_file():
files[api_path] = full.read_text()
files[api_path] = full.read_text(encoding="utf-8")
elif full.is_dir():
for name in sorted(p.name for p in full.iterdir()):
walk(full / name, f"{api_path}/{name}")
Expand Down