Skip to content

Commit a1f82f6

Browse files
committed
Skip .git and __pycache__ folders
1 parent c1c54b3 commit a1f82f6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Scripts/integrity_checker.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ def generate_folder_manifest(self, folder_path, manifest_path=None):
2626

2727
manifest_data = {}
2828
for root, _, files in os.walk(folder_path):
29+
if '.git' in root or "__pycache__" in root:
30+
continue
31+
2932
for name in files:
33+
if '.git' in name or ".pyc" in name:
34+
continue
35+
3036
file_path = os.path.join(root, name)
37+
3138
relative_path = os.path.relpath(file_path, folder_path).replace('\\', '/')
3239

3340
if relative_path == os.path.basename(manifest_path):
@@ -83,4 +90,4 @@ def verify_folder_integrity(self, folder_path, manifest_path=None):
8390

8491
is_valid = not any(issues.values())
8592

86-
return is_valid, issues
93+
return is_valid, issues

0 commit comments

Comments
 (0)