Skip to content

Commit 377ae6a

Browse files
committed
Abstract filesystem operations in doc_gen.py
- Update collect_snippets method to pass fs parameter to imported functions - Ensures collect_snippets() and collect_snippet_files() use filesystem abstraction - All existing tests pass, maintaining backward compatibility
1 parent ca0e870 commit 377ae6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aws_doc_sdk_examples_tools/doc_gen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ def collect_snippets(
7575
):
7676
prefix = prefix or ""
7777
snippets_root = snippets_root or self.root
78-
snippets, errs = collect_snippets(snippets_root)
78+
snippets, errs = collect_snippets(snippets_root, fs=self.fs)
7979
collect_snippet_files(
8080
self.examples.values(),
8181
prefix=prefix,
8282
snippets=snippets,
8383
errors=errs,
8484
root=self.root,
85+
fs=self.fs,
8586
)
8687
self.snippets = snippets
8788
self.errors.extend(errs)

0 commit comments

Comments
 (0)