forced all filextensions to lower
This commit is contained in:
@@ -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"])
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user