mirror of https://github.com/databricks/cli.git
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:
parent
cf34dc5411
commit
3a95768214
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue