Skip to content

Commit 536fc43

Browse files
author
Juho Hovila
committed
Fix windows copy command
1 parent a63ae26 commit 536fc43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed_flasher/flashers/FlasherMbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def copy_file(self, source, destination):
213213
return_code=EXIT_CODE_OS_ERROR)
214214

215215
def _copy_file_windows(self, source, destination):
216-
command = "copy {} {}".format(os.path.abspath(source), destination)
216+
command = "copy \"{}\" \"{}\"".format(os.path.abspath(source), destination)
217217
self.logger.debug("Copying with command: {}".format(command))
218218
subprocess.check_call(command)
219219

0 commit comments

Comments
 (0)