mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +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):
|
for item in os.listdir(dirname):
|
||||||
s = os.path.join(dirname, item)
|
s = os.path.join(dirname, item)
|
||||||
d = os.path.join(tempdir, item)
|
d = os.path.join(tempdir, item)
|
||||||
if os.path.isdir(s):
|
if os.path.isfile(s):
|
||||||
shutil.copytree(s, d, False, None)
|
|
||||||
else:
|
|
||||||
shutil.copy2(s, d)
|
shutil.copy2(s, d)
|
||||||
|
|
||||||
# Copy .docs subdir to tempdir as 'docs'
|
# Copy .docs subdir to tempdir as 'docs'
|
||||||
|
@ -47,4 +45,5 @@ def main(tempdir):
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# with TemporaryDirectory() as tempdir:
|
# with TemporaryDirectory() as tempdir:
|
||||||
tempdir = "tmp.benchmark"
|
tempdir = "tmp.benchmark"
|
||||||
|
os.mkdir(tempdir)
|
||||||
main(tempdir)
|
main(tempdir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue