Skip to content

Commit

Permalink
Call print_boundary function at start of iteration to increase outp…
Browse files Browse the repository at this point in the history
…ut readability
  • Loading branch information
shailshouryya committed Feb 20, 2023
1 parent 61d66a6 commit 8c46158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions view_contents_for_all_nested_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def main(include_only='.', exclude_directory=None):
def print_all_nested_files_to_console(directory, exclude_directory):
for file_name in find_all_nested_files(directory, exclude_directory):
with open(file_name, mode='r', encoding='utf-8', buffering=-1) as file:
print_boundary()
print(f'Contents of {file_name}:')
print(file.read())
print_boundary()
Expand Down

0 comments on commit 8c46158

Please sign in to comment.