fix source path, not destination path (#5702)

This commit is contained in:
Jakub Trllo 2023-10-05 14:44:56 +02:00 committed by GitHub
parent 2c7fc21601
commit 597ea86876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,8 +366,8 @@ def run_disk_mapping_commands(settings):
destination = destination.replace("/", "\\").rstrip("\\")
source = source.replace("/", "\\").rstrip("\\")
# Add slash after ':' ('G:' -> 'G:\')
if destination.endswith(":"):
destination += "\\"
if source.endswith(":"):
source += "\\"
else:
destination = destination.rstrip("/")
source = source.rstrip("/")