Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mbed_os_tools/detect/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def _is_mbed_volume(volume_string):

def _get_cached_mounted_points():
"""! Get the volumes present on the system
@return List of mount points and their associated target id
Ex. [{ 'mount_point': 'D:', 'target_id_usb_id': 'xxxx'}, ...]
@return List of mount points and their associated volume string
Ex. [{ 'mount_point': 'D:', 'volume_string': 'xxxx'}, ...]
"""
result = []
try:
Expand All @@ -80,7 +80,7 @@ def _get_cached_mounted_points():
winreg.HKEY_LOCAL_MACHINE, "SYSTEM\\MountedDevices"
)
for v in _iter_vals(mounted_devices_key):
# Valid entries have the following format: \DosDevices\D:
# Valid entries have the following format: \\DosDevices\\D:
if "DosDevices" not in v[0]:
continue

Expand Down