mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
with-colon
This commit is contained in:
parent
7b685ce089
commit
020c276ecf
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ def split_path(path, root_dname):
|
|||
def fname_to_components(fname, with_colon):
|
||||
path_components = os.path.split(fname)
|
||||
res = [pc + os.sep for pc in path_components[:-1]]
|
||||
res.append(path_components[-1] + ":")
|
||||
if with_colon:
|
||||
res.append(path_components[-1] + ":")
|
||||
else:
|
||||
res.append(path_components[-1])
|
||||
return res
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue