mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 13:25:00 +00:00
only copy files
This commit is contained in:
parent
acd85b2417
commit
25312e6e2f
1 changed files with 2 additions and 3 deletions
|
@ -11,9 +11,7 @@ def create_temp_repo(dirname, tempdir):
|
|||
for item in os.listdir(dirname):
|
||||
s = os.path.join(dirname, item)
|
||||
d = os.path.join(tempdir, item)
|
||||
if os.path.isdir(s):
|
||||
shutil.copytree(s, d, False, None)
|
||||
else:
|
||||
if os.path.isfile(s):
|
||||
shutil.copy2(s, d)
|
||||
|
||||
# Copy .docs subdir to tempdir as 'docs'
|
||||
|
@ -47,4 +45,5 @@ def main(tempdir):
|
|||
if __name__ == "__main__":
|
||||
# with TemporaryDirectory() as tempdir:
|
||||
tempdir = "tmp.benchmark"
|
||||
os.mkdir(tempdir)
|
||||
main(tempdir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue