-
Notifications
You must be signed in to change notification settings - Fork 12
Adding recursive parsing to flatten command #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
af78d4d
0e20541
6370b12
4a8baff
912e66e
a31ce2d
6dc9e66
5edb786
dbcd62e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,6 +7,9 @@ | |||||
| __email__ = "opensource@pomfort.com" | ||||||
| """ | ||||||
|
|
||||||
| import os | ||||||
| import shutil | ||||||
|
|
||||||
| from collections import defaultdict | ||||||
| from typing import Dict, List | ||||||
|
|
||||||
|
|
@@ -15,6 +18,7 @@ | |||||
| from .ignore import MHLIgnoreSpec | ||||||
| from .hashlist import MHLHashList, MHLHashEntry, MHLCreatorInfo, MHLProcessInfo | ||||||
| from .history import MHLHistory | ||||||
| from .utils import convert_posix_to_local_path | ||||||
|
|
||||||
|
|
||||||
| class MHLGenerationCreationSession: | ||||||
|
|
@@ -131,7 +135,13 @@ def append_file_hash( | |||||
| hash_entry = MHLHashEntry(hash_format, hash_string, hash_date=hash_date) | ||||||
| if original_hash_entry is None: | ||||||
| hash_entry.action = "original" | ||||||
| logger.verbose(f" created original hash for {relative_path} {hash_format}: {hash_string}") | ||||||
| if relative_path != None: | ||||||
|
||||||
| if relative_path != None: | |
| if relative_path is not None: |
Copilot
AI
May 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using a logging method (e.g., logger.error) instead of print for error handling to maintain consistency in the logging approach.
| print(f"ERR: folder {root_path} with flattened manifest does not exist") | |
| logger.error(f"Folder {root_path} with flattened manifest does not exist") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Remove unused commented out code to improve clarity and maintainability.