acc: fix find.py not to lose '.' at the beginning of the path (#2483)

Noticed that it currently turns ".databricks" in "databricks".
This commit is contained in:
Denis Bilenko 2025-03-13 11:11:46 +01:00 committed by GitHub
parent cf34dc5411
commit 3a95768214
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ result = []
for root, dirs, files in os.walk("."):
for filename in files:
path = os.path.join(root, filename).lstrip("./\\").replace("\\", "/")
path = os.path.join(root, filename).replace("\\", "/")
path = path.removeprefix("./")
if regex.search(path):
result.append(path)