Skip to content

Commit 4761d34

Browse files
committed
Fix copy issue when destination is a directory
1 parent 281674d commit 4761d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def copy(self, source, destination):
351351
if os.path.isdir(source):
352352
shutil.copytree(source, destination)
353353
else:
354-
shutil.copyfile(source, destination)
354+
shutil.copy(source, destination)
355355

356356
def remove(self, location):
357357
"""

0 commit comments

Comments
 (0)