From 1dc6977d57a65b4770dabb782faf66ea4b4e1a75 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 15 Sep 2025 16:18:22 -0400 Subject: [PATCH] forced all filextensions to lower --- utils/pathfunctions.py | 2 +- utils/policyfunctions.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/pathfunctions.py b/utils/pathfunctions.py index 573d086..b2a9121 100644 --- a/utils/pathfunctions.py +++ b/utils/pathfunctions.py @@ -69,7 +69,7 @@ def split_filepaths_grouped(df, col="filename", group_parts=4, min_parts=4): row["longestcfp"] = prefix_str row["middle"] = middle row["filename_only"] = filename - row["file_extension"] = os.path.splitext(filename)[1] + row["file_extension"] = os.path.splitext(filename)[1].tolower() new_rows.append(row) return pd.DataFrame(new_rows).drop(columns=["group_key"]) diff --git a/utils/policyfunctions.py b/utils/policyfunctions.py index 45a7c70..2a7d3d8 100644 --- a/utils/policyfunctions.py +++ b/utils/policyfunctions.py @@ -32,7 +32,8 @@ from bson import ObjectId def addHash(url, policy, hash): print(f"Adding the following: {hash} \n to {policy}:") for p in hash: - print(p) + pass + # print(p) def addPath(url, policy, hash):